Update Strings
14
Strings.md
14
Strings.md
@@ -15,6 +15,20 @@ The examples below will only be using UTF-8 strings to demonstrate it's function
|
|||||||
- **Str_8** - UTF-8 encoded string
|
- **Str_8** - UTF-8 encoded string
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
|
### Size
|
||||||
|
This method is used to return the size of the string object in characters. There is a single optional Boolean parameter to retrieve the size in bytes.
|
||||||
|
```cpp
|
||||||
|
ehs::Str_8 a = "Hello World!";
|
||||||
|
ehs::UInt_64 b = a.Size();
|
||||||
|
```
|
||||||
|
**Result:** b == 12
|
||||||
|
```cpp
|
||||||
|
ehs::Str_8 a = "Hello World!";
|
||||||
|
ehs::UInt_64 b = a.Size(true);
|
||||||
|
```
|
||||||
|
**Result:** b == 12
|
||||||
|
**Note:** The size in bytes is the same as the size in characters because ASCII is only one byte.
|
||||||
|
|
||||||
### ToLower
|
### ToLower
|
||||||
This method will turn all English alphabetic characters into their lower case equivalent on the current object.
|
This method will turn all English alphabetic characters into their lower case equivalent on the current object.
|
||||||
```cpp
|
```cpp
|
||||||
|
|||||||
Reference in New Issue
Block a user