# String.hpp
This File On Github
Ask A Question
API: latest
module: oatpp
#include "oatpp/core/utils/String.hpp"
# String
Utility class for Strings
namespace oatpp { namespace utils {
class String {}
}}
# Methods
Return Type | Name | Summary |
---|---|---|
v_buff_size | compare | Compare data1, data2 using std::memcmp . |
v_buff_size | compareCI_ASCII | Compare data1, data2 - case insensitive (ASCII only). |
void | lowerCase_ASCII | Change characters in data to lowercase (ASCII only). |
void | upperCase_ASCII | Change characters in data to uppercase (ASCII only). |
# String::compare
Compare data1, data2 using std::memcmp
. It's safe to pass nullptr for data1/data2
- @param data1 - pointer to data1.
- @param size1 - size of data1.
- @param data2 - pointer to data2.
- @param size2 - size of data2.
- @return - Negative value if the first differing byte (reinterpreted as unsigned char) in data1 is less than the corresponding byte in data2.
0 if all count bytes of data1 and data2 are equal.
Positive value if the first differing byte in data1 is greater than the corresponding byte in data2.
static v_buff_size compare(const void* data1, v_buff_size size1, const void* data2, v_buff_size size2)
# String::compareCI_ASCII
Compare data1, data2 - case insensitive (ASCII only). It's safe to pass nullptr for data1/data2
- @param data1 - pointer to data1.
- @param size1 - size of data1.
- @param data2 - pointer to data2.
- @param size2 - size of data2.
- @return - Negative value if the first differing byte (reinterpreted as unsigned char) in data1 is less than the corresponding byte in data2.
0 if all count bytes of data1 and data2 are equal.
Positive value if the first differing byte in data1 is greater than the corresponding byte in data2.
static v_buff_size compareCI_ASCII(const void* data1, v_buff_size size1, const void* data2, v_buff_size size2)
# String::lowerCase_ASCII
Change characters in data to lowercase (ASCII only).
- @param data - pointer to data.
- @param size - size of the data.
static void lowerCase_ASCII(void* data, v_buff_size size)
# String::upperCase_ASCII
Change characters in data to uppercase (ASCII only).
- @param data - pointer to data.
- @param size - size of the data.
static void upperCase_ASCII(void* data, v_buff_size size)