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 class
Token<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 Stringe
Stringe. between(Stringe a, Stringe b)
Returns a Stringe comprised of all text between the two specified Stringes.Stringe
Stringe. dilate(int left, int right)
Returns a new substringe whose left and right boundaries are offset by the specified values.static Stringe
Stringe. empty(Stringe basis)
Returns an empty Stringe based on the position of another Stringe.Stringe
Chare. getSource()
Returns the Chare's source Stringe.static Stringe
Stringe. range(Stringe a, Stringe b)
Returns a Stringe comprised of all text between and including the two specified Stringes.Stringe
StringeReader. readStringe(int length)
Reads a Stringe from the input and advances the position by the number of characters read.Stringe
StringeReader. readStringeUntil(char c)
Reads a Stringe from the input and advances the position to the next occurrence of the specified character.Stringe
StringeReader. readStringeUntilAny(char... cs)
Reads a Stringe from the input and advances the position to the next occurrence of any of the specified characters.Stringe
Stringe. slice(int left, int right)
Returns a substringe that contains all characters between the two specified positions in the Stringe.Stringe
Stringe. subSequence(int startIndex, int endIndex)
Returns a Stringe that is a subsequence of this sequence.Stringe
Stringe. substringe(int offset)
Creates a substringe from the Stringe, starting at the specified index and extending to the end.Stringe
Stringe. substringe(int offset, int length)
Creates a substringe from the Stringe, starting at the specified index and extending for the specified length.Stringe
Stringe. toLowerCase()
Returns a copy of this Stringe with all of its characters converted to lower case.static Stringe
Stringe. toStringe(Object obj)
Converts the specified object into a Stringe.Stringe
Stringe. toUpperCase()
Returns a copy of this Stringe with all of its characters converted to upper case.Stringe
Stringe. trim()
Returns the Stringe with any leading and trailing white space removed.Stringe
Stringe. trim(char... trimChars)
Returns the Stringe with any leading and trailing occurrences of the specified characters removed.Stringe
Stringe. trimEnd(char... trimChars)
Returns the Stringe with any trailing occurrences of the specified characters removed.Stringe
Stringe. 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 Stringe
Stringe. between(Stringe a, Stringe b)
Returns a Stringe comprised of all text between the two specified Stringes.boolean
StringeReader. eat(Pattern regex, Stringe result)
Indicates whether the specified regular expression matches the input at the reader's current position.static Stringe
Stringe. empty(Stringe basis)
Returns an empty Stringe based on the position of another Stringe.boolean
Stringe. equalsIgnoreCase(Stringe stre)
Compares the string value of this Stringe to the string value of another Stringe, ignoring case considerations.boolean
StringeReader. 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 boolean
Stringe. isNullOrEmpty(Stringe stre)
Indicates whether the specified Stringe is null or empty.boolean
Stringe. isSubstringeOf(Stringe parent)
Determines whether the current Stringe is a substringe of the specified parent Stringe.(package private) void
Stringe. mutate(Stringe stre)
Mutates the Stringe into another Stringe.static Stringe
Stringe. 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 void
Lexer. addUndefinedCaptureRule(T id, Function<Stringe,Stringe> func)
Defines a lexer rule that captures unrecognized characters as a token.void
Lexer. 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.
-