15 String256 escapedFS; escapedFS.DbgDisableBufferReplacementWarning();
21 while(parsePos < escapedFS.Length() ) {
25 if( ( parsePos= escapedFS.IndexOf( A_CHAR(
'{'), parsePos ) ) < 0
26 || parsePos == escapedFS.Length() - 1 )
28 formatStringStripped << escapedFS.Substring( nonExprPortionStart );
34 if( escapedFS[parsePos] ==
A_CHAR(
'{') ) {
40 formatStringStripped << escapedFS.Substring( nonExprPortionStart, parsePos - nonExprPortionStart );
45 while( endPos < escapedFS.Length() -1
46 && escapedFS[endPos] != separatorChar
47 && escapedFS[endPos] !=
A_CHAR(
'}') )
51 String expressionString= escapedFS.Substring( parsePos, endPos - parsePos );
52 nonExprPortionStart= endPos;
53 if( escapedFS[endPos] == separatorChar )
54 ++nonExprPortionStart;
63 formatSubstrings.push_back(formatStringStripped.Length());
75 for(
size_t expressionNo= 0; expressionNo <
expressions.size() ; ++expressionNo ) {
81 stdFormatter->Format( target, formatString, exprResult );
#define ALIB_CALLER_NULLED
Exception & Add(const lang::CallerInfo &ci, TEnum type, TArgs &&... args)
Utility types of camp ALib Expressions.
containers::SharedPtr< format::Formatter > SPFormatter
strings::util::StringEscaperStandard StringEscaperStandard
Type alias in namespace #"%alib".
strings::TEscape< character > Escape
Type alias in namespace #"%alib".
constexpr const String EMPTY_STRING
An empty string of the default character type.
lang::integer integer
Type alias in namespace #"%alib".
boxing::Box Box
Type alias in namespace #"%alib".
strings::TString< character > String
Type alias in namespace #"%alib".
exceptions::Exception Exception
Type alias in namespace #"%alib".
LocalString< 256 > String256
Type alias name for #"TLocalString;TLocalString<character,256>".
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace #"%alib".
characters::character character
Type alias in namespace #"%alib".