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 |
This is a detail namespace of module ALib Strings. | |
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_CStringConstants |
struct | TT_IsAppendable |
struct | TT_StringConstants |
DOXYGEN. More... | |
Enumeration Index: | |
enum class | NumberFormatFlags : uint8_t { NONE = 0 , ReadGroupChars = 1 , WriteGroupChars = 2 , ForceDecimalPoint = 4 , WriteExponentPlusSign = 8 , OmitTrailingFractionalZeros =16 , ReplaceLeadingZerosWithSpaces =32 , ForceScientific =64 , HexLowerCase =128 } |
Function Index: | |
Comparison Operators | |
bool | operator== (const String &lhs, const String &rhs) |
Variable Index: | |
static constexpr integer | MAX_LEN = (std::numeric_limits<integer>::max)() |
The maximum length of an ALib string. | |
|
strong |
Flags used with class TNumberFormat. By default (with construction of an instance of TNumberFormat), all flags are unset, except ForceDecimalPoint.
Enumerator | |
---|---|
NONE | If assigned, all flags are unset. |
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 flag ist set, then trailing |
ReplaceLeadingZerosWithSpaces | If this flag ist set, then leading |
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 22 of file numberformat.hpp.
Comparison operators for ALib Strings and compatible types. Those are:
operator==
,operator!=
,operator<
,operator<=
,operator>
, andoperator>=
.The operators use methods lhs.Equals<CHK, lang::Case::Sensitive>(rhs), and lhs.CompareTo<CHK, lang::Case::Sensitive>(rhs) for evaluation.
For performance-critical sections, the original methods may be used where template parameter TCheck can be set to NC.
operator==
is listed here in the documentation!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 2405 of file string.hpp.
The maximum length of an ALib string.
Definition at line 31 of file string.hpp.