A buffer list of the characters
CharBuffer
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| StartsWith | 1 | test if current char buffer is starts with a specific prefix string |
| Add | 2 | add a char into current buffer data list |
| GetLastOrDefault | 1 | get the last char from current buffer list data safely, if the internal buffer list has no element data, then this function will returns nothing |
| Clear | 1 | clear the internal buffer list data |
| Pop | 1 | populate out the last char from the internal buffer list |
| PopAllChars | 1 | populate all chars in current object and then clear the buffer list |
| ToString | 1 | text |
| op_Implicit | 1 | Convert a string object to a char buffer |
| op_Equality | 2 | test current char buffer size is 1 and also is equals to the given char? |
| op_Inequality | 1 | string not equals? |
| AsEnumerable | 1 | |
| ToArray | 1 | |
| op_Addition | 1 | |
| op_Multiply | 1 | |
| op_GreaterThan | 1 | |
| op_LessThan | 1 | |
| op_Explicit | 1 | |
| op_Like | 1 |
03 Properties
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| buffer | 1 | the current buffer data list |
05 Members
String)test if current char buffer is starts with a specific prefix string
| Name | Type | Description |
|---|---|---|
prefix | String | - |
Char)add a char into current buffer data list
| Name | Type | Description |
|---|---|---|
c | Char | - |
String)add a collection of char into current buffer data list
| Name | Type | Description |
|---|---|---|
chars | String | - |
get the last char from current buffer list data safely, if the internal buffer list has no element data, then this function will returns nothing
clear the internal buffer list data
populate out the last char from the internal buffer list
populate all chars in current object and then clear the buffer list
text
String)Convert a string object to a char buffer
| Name | Type | Description |
|---|---|---|
str | String | - |
String)string equals?
| Name | Type | Description |
|---|---|---|
buf | CharBuffer | - |
test | String | - |
Char)test current char buffer size is 1 and also is equals to the given char?
| Name | Type | Description |
|---|---|---|
buf | CharBuffer | - |
test | Char | - |
this function returns false if the buffer size is not equals to 1 if the single char in the given buffer is not equals to the given test char, then returns false.
String)string not equals?
| Name | Type | Description |
|---|---|---|
buf | CharBuffer | - |
test | String | - |
Int32)get char from the buffer list via a given index value
| Name | Type | Description |
|---|---|---|
i | Int32 | 使用负数表示从尾到头 |
get current size of the data in this char buffer object
get the last char in current buffer list data
get the last char unsafe, this property may crashed the program if the CharBuffer.buffer list data contains no elements. for get the last char safely, use the CharBuffer.GetLastOrDefault() function.
test if current chars is like the integer string pattern
the negative value not works here, just test for the integer chars pattern
the current buffer data list
Char)Int32)Int32)Int32)