Class FindOneOf

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.string.FindOneOf

@BoxBIF(description="Find the first occurrence of any character from a set") @BoxMember(type=STRING_STRICT, name="FindOneOf", objectArgument="string") public class FindOneOf extends BIF
  • Constructor Details

    • FindOneOf

      public FindOneOf()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Finds the first occurrence of any character in a set of characters, from a specified start position.
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      Returns the position of the first occurrence of the set. If the set is not found, returns zero.