String reader.
| C# | Visual Basic | Visual C++ |
public class StringReader
Public Class StringReader
public ref class StringReader
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| StringReader(String) |
Default constructor.
| |
| AppenString(String) |
Appends specified string to SourceString.
| |
| Available |
Gets how many chars are available for reading.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object 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.
| |
| 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()()() | (Inherited from Object.) |
| Object | |
| StringReader | |