Constructors
-
String
Slice(String) Initializes a new instance of the StringSlice struct. -
String
Slice(String, Initializes a new instance of the StringSlice struct.Int32, Int32)
Methods
-
Index
Of(Char) Searches for the specified character within this slice. -
Index
Of(String, Searches the specified text within this slice.Int32, Boolean) -
Is
Empty Determines whether this slice is empty or made only of whitespaces.Or Whitespace() -
Match(String,
Int32) Matches the specified text. -
Match(String,
Int32, Matches the specified text.Int32) -
Match
Lowercase(String, Matches the specified text using lowercase comparison.Int32) -
Match
Lowercase(String, Matches the specified text using lowercase comparison.Int32, Int32) -
Next
Char() Goes to the next character, incrementing the Start position. -
Peek
Char() Peeks a character at the offset of 1 from the current Start position inside the range Start and End, returns `\0` if outside this range. -
Peek
Char(Int32) Peeks a character at the specified offset from the current Start position inside the range Start and End, returns `\0` if outside this range. -
Peek
Char Peeks a character at the specified offset from the current beginning of the string, without taking into account Start and EndAbsolute(Int32) -
Peek
Char Peeks a character at the specified offset from the current begining of the slice without using the range Start or End, returns `\0` if outside the Text.Extra(Int32) -
Skip
Spaces Expect spaces until a end of line. Return false otherwise.To End Of Line Or End Of Document() -
To
String() Returns a String that represents this instance. - Trim() Trims whitespaces from both the start and end of this slice.
-
Trim
End() Trims whitespaces at the end of this slice, starting from End position. -
Trim
Start() Trims whitespaces at the beginning of this slice starting from Start position. -
Trim
Start(Int32&) Trims whitespaces at the beginning of this slice starting from Start position.