102 if( input.
IsNull () )
error(
"Input string is nulled" );
184 template<
typename TIntegral>
185 requires std::integral<TIntegral>
186 static void Get( TIntegral& result,
bool isLastField=
false )
189 if( bigInt == (std::numeric_limits<integer>::max)() ) result= (std::numeric_limits<TIntegral>::max)();
190 else if( bigInt == (std::numeric_limits<integer>::min)() ) result= (std::numeric_limits<TIntegral>::min)();
191 else result=
static_cast<TIntegral
>( bigInt );
206 template<
typename TEnum>
207 requires std::is_enum_v<TEnum>
208 static void Get( TEnum& result,
bool isLastField=
false )
210 typename std::underlying_type<TEnum>::type resultIntegral;
212 result= TEnum( resultIntegral );
222 ALIB_DLL static void Get(
double& result,
bool isLastField=
false );
constexpr bool IsEmpty() const
constexpr const TChar * Buffer() const
constexpr bool IsNull() const
lang::integer integer
Type alias in namespace alib.
strings::TString< nchar > NString
Type alias in namespace alib.
strings::TCString< nchar > NCString
Type alias in namespace alib.
strings::TString< character > String
Type alias in namespace alib.
characters::character character
Type alias in namespace alib.
strings::TSubstring< character > Substring
Type alias in namespace alib.
static ALIB_DLL character InnerDelimChar
The delimiter of fields of a record.
static ALIB_DLL void OuterDelim()
static ALIB_DLL void assertNoTrailingWhitespaces(String &token)
static ALIB_DLL void Get(character &result, bool isLastField=false)
static ALIB_DLL character OuterDelimChar
The delimiter of records.
static ALIB_DLL void assertChar(character specificChar, const NCString &where)
static ALIB_DLL Substring Input
The remaining input string.
static ALIB_DLL void error(const NCString &what)
static ALIB_DLL void assertNoWhitespaces(const NCString &where)
static ALIB_DLL void assertNoUnnecessary(character specificChar, const NCString &where)
static ALIB_DLL String OriginalInput
A backup of the originally given string to parse.
static ALIB_DLL void Get(String &result, bool isLastField=false)
static ALIB_DLL void Get(double &result, bool isLastField=false)
static ALIB_DLL void Delim()
static ALIB_DLL void assertEndOfRecord()
static ALIB_DLL integer getInteger(bool isLastField)
static void Get(TEnum &result, bool isLastField=false)
static ALIB_DLL void Initialize(const String &input, character innerDelim, character outerDelim, const NString &resourceCategory, const NString &resourceName)
static ALIB_DLL NString ResourceCategory
The resource category (if a resourced string was parsed).
static ALIB_DLL void assertEndOfInput()
static void Get(TIntegral &result, bool isLastField=false)
static ALIB_DLL NString ResourceName
The resource name (if a resourced string was parsed).