This class provides the ability to simulate various classic C string functions which don't have exact equivalents in the .NET Framework.
CString
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Decode | 1 | decode of the meta char inside the given format string |
| ChangeCharacter | 1 | This method allows replacing a single character in a string, to help convert C++ code where a single character in a character array is replaced. |
| IsXDigit | 1 | This method simulates the classic C string function 'isxdigit' (and 'iswxdigit'). |
| StrChr | 1 | This method simulates the classic C string function 'strchr' (and 'wcschr'). |
| StrRChr | 1 | This method simulates the classic C string function 'strrchr' (and 'wcsrchr'). |
| StrStr | 1 | This method simulates the classic C string function 'strstr' (and 'wcsstr'). |
| StrTok | 1 | This method simulates the classic C string function 'strtok' (and 'wcstok'). |
03 Members
String, Boolean)decode of the meta char inside the given format string
| Name | Type | Description |
|---|---|---|
s | String | - |
String, Int32, Char)This method allows replacing a single character in a string, to help convert C++ code where a single character in a character array is replaced.
| Name | Type | Description |
|---|---|---|
sourcestring | String | - |
charindex | Int32 | - |
changechar | Char | - |
Char)This method simulates the classic C string function 'isxdigit' (and 'iswxdigit').
| Name | Type | Description |
|---|---|---|
character | Char | - |
String, Char)This method simulates the classic C string function 'strchr' (and 'wcschr').
| Name | Type | Description |
|---|---|---|
stringtosearch | String | - |
chartofind | Char | - |
String, Char)This method simulates the classic C string function 'strrchr' (and 'wcsrchr').
| Name | Type | Description |
|---|---|---|
stringtosearch | String | - |
chartofind | Char | - |
String, String)This method simulates the classic C string function 'strstr' (and 'wcsstr').
| Name | Type | Description |
|---|---|---|
stringtosearch | String | - |
stringtofind | String | - |
String, String)This method simulates the classic C string function 'strtok' (and 'wcstok'). Note that the .NET string 'Split' method cannot be used to simulate 'strtok' since it doesn't allow changing the delimiters between each token retrieval.
| Name | Type | Description |
|---|---|---|
stringtotokenize | String | - |
delimiters | String | - |