AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
indexOfObject (Pointer source, Object target) yoix.util
 
Returns the index of the first occurrence of target in source, or -1 if no match is found. Comparison is done using === semantics, which means strings are compared using a test that duplicates the behavior of the strcmp built-in.

The indexOf and indexOfObject built-ins return the same result when source is a string and target is an integer , but indexOf will run slightly faster.
 
 Return:   int
 
 See Also:   hashIndex, indexOf, lastIndexOf, lastIndexOfObject

 

Yoix is a registered trademark of AT&T Inc.