Update Strings
10
Strings.md
10
Strings.md
@@ -45,4 +45,12 @@ This method will turn all English alphabetic characters into their upper case eq
|
|||||||
ehs::Str_8 a = "Hello World!";
|
ehs::Str_8 a = "Hello World!";
|
||||||
ehs::Str_8 b = a.GetUpper();
|
ehs::Str_8 b = a.GetUpper();
|
||||||
```
|
```
|
||||||
**Result:** b == "HELLO WORLD!"
|
**Result:** b == "HELLO WORLD!"
|
||||||
|
|
||||||
|
### Split
|
||||||
|
This method will split a single string into multiple strings with the given delimiter and return a Vector container object. The first parameter is the given delimiter to split the string with. The second parameter is the maximum number of times to split the string.
|
||||||
|
```cpp
|
||||||
|
ehs::Str_8 a = "Hello! How are you?";
|
||||||
|
ehs::Vector<ehs::Str_8> b = a.Split(" ", 1);
|
||||||
|
```
|
||||||
|
**Result:** b == {"Hello!", "How are you?"}
|
||||||
Reference in New Issue
Block a user