Update Strings
@@ -46,3 +46,11 @@ ehs::Str_8 a = "Hello World!";
|
||||
ehs::Str_8 b = a.GetUpper();
|
||||
```
|
||||
**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