String reader.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public class StringReader
Public Class StringReader
public ref class StringReader
type StringReader = class end
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
StringReader(String) |
Default constructor.
| |
AppendString(String) |
Appends specified string to SourceString.
| |
Available |
Gets how many chars are available for reading.
| |
EndsWith(String) |
Gets if source string ends with specified value. Compare is case-sensitive.
| |
EndsWith(String, Boolean) |
Gets if source string ends with specified value.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OriginalString |
Gets original string passed to class constructor.
| |
Position |
Gets position in original string.
| |
QuotedReadToDelimiter(Char) |
Reads string to specified delimiter or to end of underlying string. Notes: Delimiter in quoted string is skipped.
Delimiter is removed by default.
For example: delimiter = ',', text = '"aaaa,eee",qqqq' - then result is '"aaaa,eee"'.
| |
QuotedReadToDelimiter(array<Char>[]()[][]) |
Reads string to specified delimiter or to end of underlying string. Notes: Delimiters in quoted string is skipped.
Delimiter is removed by default.
For example: delimiter = ',', text = '"aaaa,eee",qqqq' - then result is '"aaaa,eee"'.
| |
QuotedReadToDelimiter(array<Char>[]()[][], Boolean) |
Reads string to specified delimiter or to end of underlying string. Notes: Delimiters in quoted string is skipped.
For example: delimiter = ',', text = '"aaaa,eee",qqqq' - then result is '"aaaa,eee"'.
| |
ReadParenthesized()()()() |
Reads parenthesized value. Supports {},(),[],<> parenthesis.
Throws exception if there isn't parenthesized value or closing parenthesize is missing.
| |
ReadSpecifiedLength(Int32) |
Reads string with specified length. Throws exception if read length is bigger than source string length.
| |
ReadToEnd()()()() |
Reads all remaining string, returns null if no chars left to read.
| |
ReadToFirstChar()()()() |
Reads to first char, skips white-space(SP,VTAB,HTAB,CR,LF) from the beginning of source string.
| |
ReadWord()()()() |
Reads word from string. Returns null if no word is available.
Word reading begins from first char, for example if SP"text", then space is trimmed.
| |
ReadWord(Boolean) |
Reads word from string. Returns null if no word is available.
Word reading begins from first char, for example if SP"text", then space is trimmed.
| |
ReadWord(Boolean, array<Char>[]()[][], Boolean) |
Reads word from string. Returns null if no word is available.
Word reading begins from first char, for example if SP"text", then space is trimmed.
| |
RemoveFromEnd(Int32) |
Removes specified count of chars from the end of the source string.
| |
SourceString |
Gets currently remaining string.
| |
StartsWith(String) |
Gets if source string starts with specified value. Compare is case-sensitive.
| |
StartsWith(String, Boolean) |
Gets if source string starts with specified value.
| |
StartsWithWord()()()() |
Gets if current source string starts with word. For example if source string starts with
whiter space or parenthesize, this method returns false.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
Inheritance Hierarchy
Object | |
StringReader |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119