![]() |
Max OS 0.3
|
Defines a String class for dynamically sized strings with various operations. More...
Go to the source code of this file.
Classes | |
| class | MaxOS::String |
| Dynamically sized string with various operations. More... | |
| class | MaxOS::StringBuilder |
| Creates a string using a using a combination of parts with the '<<' operator. Simmilar to the logger. More... | |
Typedefs | |
| typedef class MaxOS::String | MaxOS::string |
| Typedef for String. | |
Functions | |
| int | strlen (const char *str) |
| Gets the length of a string. | |
| char * | itoa (int base, int64_t number) |
| Converts integer to string. | |
| char * | htoa (uint64_t number) |
| Converts hex to string. | |
| bool | strcmp (char const *str1, char const *str2) |
| Checks if one string pointer is equal to another string pointer. | |
| bool | strcmp (char const *str1, MaxOS::String const &str2) |
| Checks if one string pointer is equal to a String. | |
| bool | strcmp (MaxOS::String const &str1, char const *str2) |
| Checks if one String is equal to a string pointer. | |
| bool | strcmp (MaxOS::String const &str1, MaxOS::String const &str2) |
| Checks if one String is equal to another String (better use is of "==") | |
| bool | strncmp (char const *str1, char const *str2, int length) |
| Checks if one string pointer is equal to another string pointer up to a specified length (each must be >= this length) | |
| bool | strncmp (char const *str1, MaxOS::String const &str2, int length) |
| Checks if one string pointer is equal to another String up to a specified length (each must be >= this length) | |
| bool | strncmp (MaxOS::String const &str1, char const *str2, int length) |
| Checks if one String is equal to another string pointer up to a specified length (each must be >= this length) | |
| bool | strncmp (MaxOS::String const &str1, MaxOS::String const &str2, int length) |
| Checks if one String is equal to another String up to a specified length (each must be >= this length) | |
Variables | |
| constexpr int | MaxOS::MAX_STRING_SMALL_STORAGE = 0x99 |
| How many characters can be stored in the small string optimization array. | |
Defines a String class for dynamically sized strings with various operations.
Definition in file string.h.
| char * htoa | ( | uint64_t | number | ) |
Converts hex to string.
| number | The number to convert |
Definition at line 738 of file string.cpp.
Referenced by MaxOS::String::String(), and MaxOS::common::OutputStream::write_hex().
| char * itoa | ( | int | base, |
| int64_t | number | ||
| ) |
Converts integer to string.
| base | The base of the number (10 for decimal, 16 for hex) |
| number | The number to convert |
Definition at line 703 of file string.cpp.
Referenced by MaxOS::String::String(), and MaxOS::common::OutputStream::write_int().
| bool strcmp | ( | char const * | str1, |
| char const * | str2 | ||
| ) |
Checks if one string pointer is equal to another string pointer.
| str1 | The first string |
| str2 | The second string |
Definition at line 765 of file string.cpp.
Referenced by MaxOS::drivers::console::VESABootConsole::put_character(), strcmp(), strcmp(), and strcmp().
| bool strcmp | ( | char const * | str1, |
| String const & | str2 | ||
| ) |
Checks if one string pointer is equal to a String.
| str1 | The first string |
| str2 | The second string |
Definition at line 784 of file string.cpp.
References MaxOS::String::c_str(), and strcmp().
| bool strcmp | ( | String const & | str1, |
| char const * | str2 | ||
| ) |
Checks if one String is equal to a string pointer.
| str1 | The first string |
| str2 | The second string |
Definition at line 798 of file string.cpp.
References MaxOS::String::c_str(), and strcmp().
Checks if one String is equal to another String (better use is of "==")
| str1 | The first string |
| str2 | The second string |
Definition at line 811 of file string.cpp.
References MaxOS::String::c_str(), and strcmp().
| int strlen | ( | const char * | str | ) |
Gets the length of a string.
| str | The string to get the length of |
Definition at line 689 of file string.cpp.
Referenced by MaxOS::String::String(), and MaxOS::String::String().
| bool strncmp | ( | char const * | str1, |
| char const * | str2, | ||
| int | length | ||
| ) |
Checks if one string pointer is equal to another string pointer up to a specified length (each must be >= this length)
| str1 | The first string |
| str2 | The second string |
| length | The length of the string to compare |
Definition at line 826 of file string.cpp.
Referenced by MaxOS::hardwarecommunication::AdvancedConfigurationAndPowerInterface::find(), strncmp(), strncmp(), and strncmp().
| bool strncmp | ( | char const * | str1, |
| String const & | str2, | ||
| int | length | ||
| ) |
Checks if one string pointer is equal to another String up to a specified length (each must be >= this length)
| str1 | The first string |
| str2 | The second string |
| length | The length of the string to compare |
Definition at line 846 of file string.cpp.
References MaxOS::String::c_str(), and strncmp().
| bool strncmp | ( | String const & | str1, |
| char const * | str2, | ||
| int | length | ||
| ) |
Checks if one String is equal to another string pointer up to a specified length (each must be >= this length)
| str1 | The first string |
| str2 | The second string |
| length | The length of the string to compare |
Definition at line 861 of file string.cpp.
References MaxOS::String::c_str(), and strncmp().
Checks if one String is equal to another String up to a specified length (each must be >= this length)
| str1 | The first string |
| str2 | The second string |
| length | The length of the string to compare |
Definition at line 876 of file string.cpp.
References MaxOS::String::c_str(), and strncmp().