18namespace alib::config::detail {
25DOX_MARKER([DOX_ENUMS_RECORD_PARSER])
29 ERSerializable::MinimumRecognitionLength= 0;
32DOX_MARKER([DOX_ENUMS_RECORD_PARSER])
36namespace alib::config::detail {
52 esc.Unescape(src, buf );
58 if(parser.ConsumeInt(val) && parser.Trim().IsEmpty())
69 if(parser.ConsumeFloat(val) && parser.Trim().IsEmpty())
86 esc.UnescapeTokens(results, src, delimiter);
89 for(
auto it : results )
93 value.ConsumeChar(
'\n');
94 value.ConsumeCharFromEnd(
'\n');
95 value.ConsumeCharFromEnd(
'\r');
104 for(
auto it= dataSA.begin() ;; )
106 esc.Escape(*it, dest, delimiter);
108 if( ++it == dataSA.end() )
119 imPortStringVector(data, esc, src,
A_CHAR(
","));
124 exPortStringVector(data, esc, dest,
A_CHAR(
","));
129 imPortStringVector(data, esc, src,
A_CHAR(
";"));
134 exPortStringVector(data, esc, dest,
A_CHAR(
";"));
ALIB_API std::pair< bool, int8_t > ParseBooleanToken(const String &src)
ALIB_API double ParseFloat(integer startIdx=0, TNumberFormat< TChar > *numberFormat=nullptr, integer *newIdx=nullptr) const
TSubstring & TrimStart(const TCString< TChar > &whiteSpaces=TT_CStringConstants< TChar >::DefaultWhitespaces())
LocalString< 64 > String64
Type alias name for TLocalString<character,64>.
config::Configuration Configuration
Type alias in namespace alib.
monomem::TLocalAllocator< 4 > LocalAllocator4K
Type alias in namespace alib. Allocates 4kB of stack memory.
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace alib.
strings::util::TStringVector< character, PoolAllocator > StringVectorPA
Type alias in namespace alib.
strings::TSubstring< character > Substring
Type alias in namespace alib.
LocalString< 2048 > String2K
Type alias name for TLocalString<character,2048>.
constexpr CString NEW_LINE
A zero-terminated string containing the new-line character sequence.
strings::TString< character > String
Type alias in namespace alib.
strings::util::StringEscaper StringEscaper
Type alias in namespace alib.
LocalString< 1024 > String1K
Type alias name for TLocalString<character,1024>.
boxing::Box Box
Type alias in namespace alib.
strings::util::TStringVector< character, MonoAllocator > StringVectorMA
Type alias in namespace alib.
lang::integer integer
Type alias in namespace alib.
strings::TAString< character, PoolAllocator > AStringPA
Type alias in namespace alib.
static ALIB_API void Get(String &result, bool isLastField=false)