This is the reference documentation of sub-namespace strings
of the ALib C++ Library , which holds types of library module ALib Strings .
Extensive documentation for this module is provided with ALib Module Strings - Programmer's Manual.
Nested Namespaces: | |
namespace | APPENDABLES |
namespace | compatibility |
namespace | detail |
namespace | util |
Type Index: | |
struct | T_Append |
struct | T_SuppressAutoCast |
class | TAString |
class | TCString |
class | TFormat |
class | TLocalString |
struct | TLocalStringNoWarning |
struct | TNumberFormat |
class | TString |
class | TStringLengthResetter |
class | TStringNZT |
class | TSubstring |
struct | TT_IsAppendable |
struct | TT_StringConstants |
Enumeration Index: | |
enum class | NumberFormatFlags : uint8_t { NONE = 0 , ReadGroupChars = 1 , WriteGroupChars = 2 , ForceDecimalPoint = 4 , WriteExponentPlusSign = 8 , OmitTrailingFractionalZeros =16 , ForceScientific =32 , HexLowerCase =64 } |
Function Index: | |
Comparison Operators | |
############################################################################################ ############################################################################################# | |
bool | operator== (const String &lhs, const String &rhs) |
bool | operator!= (const String &lhs, const String &rhs) |
bool | operator<=> (const String &lhs, const String &rhs) |
template<typename TChar > | |
strings::TString< TChar > | AllocateCopy (const strings::TString< TChar > &src) |
template<typename TChar > | |
void | DeleteString (const strings::TString< TChar > &string) |
Variable Index: | |
static constexpr integer | MAX_LEN = (std::numeric_limits<integer>::max)() |
|
strong |
Flags used with class TNumberFormat .
Enumerator | |
---|---|
NONE | Used to clear all flags |
ReadGroupChars | Denotes if grouping characters are ignored when parsing numbers if they are given (not set to |
WriteGroupChars | Denotes if grouping characters are written if they are given (not set to |
ForceDecimalPoint | If |
WriteExponentPlusSign | Determines if positive exponent values are prepended with an explicit '+' character when written using WriteFloat . |
OmitTrailingFractionalZeros | If this field is |
ForceScientific | If If one of the fields TNumberFormat::IntegralPartMinimumWidth or TNumberFormat::FractionalPartWidth is set to a positive value, these limits get extended. Function WriteFloat in this case keeps non-scientific notation established if possible. |
HexLowerCase | If |
Definition at line 24 of file numberformat.hpp.
|
inline |
Inline namespace function to create a dynamically allocated copy of a string. The string may be deleted using DeleteString.
Strings created with this function might be deleted with DeleteString.
TChar | The character type of the string. Deduced from the given argument. |
src | The source string to copy. |
Definition at line 2406 of file string.hpp.
|
inline |
Inline namespace function to delete the buffer of a dynamically allocated string. All the method does is: delete[] string.Buffer()
TChar | The character type of the string. Deduced from the given argument. |
string | The string whose buffer is to be deleted. |
Definition at line 2424 of file string.hpp.
Not-Equal operator for ALib Strings and compatible types. Returns the result of lhs.Equals<lang::Case::Sensitive>(rhs) .
lhs | The left-hand operand of string-like type. |
rhs | The right-hand operand of string-like type. |
false
if the contents of the strings are equal, true
otherwise. Definition at line 2333 of file string.hpp.
Provision of operators '<'
, '<='
, '>'
and '<='
for ALib Strings and compatible types. Invokes of lhs.CompareTo<lang::Case::Sensitive>(rhs) and returns the rightfully interpreted result.
lhs | The left-hand operand of string-like type. |
rhs | The right-hand operand of string-like type. |
false
if the contents of the strings are equal, true
otherwise. Definition at line 2349 of file string.hpp.
Equal operator for ALib Strings and compatible types. Returns the result of lhs.Equals<lang::Case::Sensitive>(rhs) .
lhs | The left-hand operand of string-like type. |
rhs | The right-hand operand of string-like type. |
true
if the contents of the strings are equal, false
otherwise. Definition at line 2319 of file string.hpp.
The maximum length of an ALib string.
Definition at line 45 of file string.hpp.