diff --git a/Strings.md b/Strings.md index ce94cad..8b7d143 100644 --- a/Strings.md +++ b/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 # 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 This method will turn all English alphabetic characters into their lower case equivalent on the current object. ```cpp