Uses of Class
net.fauxpark.stringes.Stringe
-
Packages that use Stringe Package Description net.fauxpark.stringes The core Stringe classes. -
-
Uses of Stringe in net.fauxpark.stringes
Subclasses of Stringe in net.fauxpark.stringes Modifier and Type Class Description classToken<T>Represents a Token with a string value and a custom identifier.Methods in net.fauxpark.stringes that return Stringe Modifier and Type Method Description static StringeStringe. between(Stringe a, Stringe b)Returns a Stringe comprised of all text between the two specified Stringes.StringeStringe. dilate(int left, int right)Returns a new substringe whose left and right boundaries are offset by the specified values.static StringeStringe. empty(Stringe basis)Returns an empty Stringe based on the position of another Stringe.StringeChare. getSource()Returns the Chare's source Stringe.static StringeStringe. range(Stringe a, Stringe b)Returns a Stringe comprised of all text between and including the two specified Stringes.StringeStringeReader. readStringe(int length)Reads a Stringe from the input and advances the position by the number of characters read.StringeStringeReader. readStringeUntil(char c)Reads a Stringe from the input and advances the position to the next occurrence of the specified character.StringeStringeReader. readStringeUntilAny(char... cs)Reads a Stringe from the input and advances the position to the next occurrence of any of the specified characters.StringeStringe. slice(int left, int right)Returns a substringe that contains all characters between the two specified positions in the Stringe.StringeStringe. subSequence(int startIndex, int endIndex)Returns a Stringe that is a subsequence of this sequence.StringeStringe. substringe(int offset)Creates a substringe from the Stringe, starting at the specified index and extending to the end.StringeStringe. substringe(int offset, int length)Creates a substringe from the Stringe, starting at the specified index and extending for the specified length.StringeStringe. toLowerCase()Returns a copy of this Stringe with all of its characters converted to lower case.static StringeStringe. toStringe(Object obj)Converts the specified object into a Stringe.StringeStringe. toUpperCase()Returns a copy of this Stringe with all of its characters converted to upper case.StringeStringe. trim()Returns the Stringe with any leading and trailing white space removed.StringeStringe. trim(char... trimChars)Returns the Stringe with any leading and trailing occurrences of the specified characters removed.StringeStringe. trimEnd(char... trimChars)Returns the Stringe with any trailing occurrences of the specified characters removed.StringeStringe. trimStart(char... trimChars)Returns the Stringe with any leading occurrences of the specified characters removed.Methods in net.fauxpark.stringes that return types with arguments of type Stringe Modifier and Type Method Description (package private) TwoTuple<Function<Stringe,Stringe>,T>Lexer. getUndefinedCaptureRule()Returns the rule for undefined symbols.(package private) TwoTuple<Function<Stringe,Stringe>,T>Lexer. getUndefinedCaptureRule()Returns the rule for undefined symbols.List<Stringe>Stringe. split(char... separators)Splits the Stringe into multiple parts by the specified delimiters.List<Stringe>Stringe. split(char[] separators, boolean keepEmpty)Splits the Stringe into multiple parts by the specified delimiters.List<Stringe>Stringe. split(char[] separators, int count, boolean keepEmpty)Splits the Stringe into multiple parts by the specified delimiters.List<Stringe>Stringe. split(String... separators)Splits the Stringe into multiple parts by the specified delimiters.List<Stringe>Stringe. split(String[] separators, boolean keepEmpty)Splits the Stringe into multiple parts by the specified delimiters.List<Stringe>Stringe. split(String[] separators, int count, boolean keepEmpty)Splits the Stringe into multiple parts by the specified delimiters.Methods in net.fauxpark.stringes with parameters of type Stringe Modifier and Type Method Description static StringeStringe. between(Stringe a, Stringe b)Returns a Stringe comprised of all text between the two specified Stringes.booleanStringeReader. eat(Pattern regex, Stringe result)Indicates whether the specified regular expression matches the input at the reader's current position.static StringeStringe. empty(Stringe basis)Returns an empty Stringe based on the position of another Stringe.booleanStringe. equalsIgnoreCase(Stringe stre)Compares the string value of this Stringe to the string value of another Stringe, ignoring case considerations.booleanStringeReader. isNext(Pattern regex, Stringe result)Indicates whether the specified regular expression matches the input at the reader's current position, and outputs the result.static booleanStringe. isNullOrEmpty(Stringe stre)Indicates whether the specified Stringe is null or empty.booleanStringe. isSubstringeOf(Stringe parent)Determines whether the current Stringe is a substringe of the specified parent Stringe.(package private) voidStringe. mutate(Stringe stre)Mutates the Stringe into another Stringe.static StringeStringe. range(Stringe a, Stringe b)Returns a Stringe comprised of all text between and including the two specified Stringes.Iterable<Token<T>>Lexer. tokenize(Stringe stre)Tokenizes the input Stringe and enumerates the resulting tokens.<U> Iterable<U>Lexer. tokenize(Stringe stre, BiFunction<Stringe,T,U> tokenEmitter)Tokenizes the input Stringe and enumerates the resulting tokens using the specified token emitter.Method parameters in net.fauxpark.stringes with type arguments of type Stringe Modifier and Type Method Description voidLexer. addUndefinedCaptureRule(T id, Function<Stringe,Stringe> func)Defines a lexer rule that captures unrecognized characters as a token.voidLexer. addUndefinedCaptureRule(T id, Function<Stringe,Stringe> func)Defines a lexer rule that captures unrecognized characters as a token.<T,U>
UStringeReader. readToken(Lexer<T> rules, BiFunction<Stringe,T,U> tokenEmitter)Reads the next token from the current position, then advances the position past it.<U> Iterable<U>Lexer. tokenize(Stringe stre, BiFunction<Stringe,T,U> tokenEmitter)Tokenizes the input Stringe and enumerates the resulting tokens using the specified token emitter.Constructors in net.fauxpark.stringes with parameters of type Stringe Constructor Description Chare(Stringe source, char c, int offset)Constructs a new Chare with offset information.Chare(Stringe source, char c, int offset, int line, int column)Constructs a new Chare with offset, line and column information.Stringe(Stringe stre)Constructs a new Stringe from another Stringe.StringeReader(Stringe stre)Constructs a new StringeReader using the specified Stringe as input.Token(T id, Stringe value)Constructs a new Token from the specified Stringe.
-