Home
last modified time | relevance | path

Searched refs:wsSrcNum (Results 1 – 3 of 3) sorted by relevance

/external/pdfium/xfa/fgas/crt/
Dcfgas_stringformatter.h35 bool ParseNum(const WideString& wsSrcNum,
45 bool FormatNum(const WideString& wsSrcNum,
Dcfgas_stringformatter.cpp1122 bool CFGAS_StringFormatter::ParseNum(const WideString& wsSrcNum, in ParseNum() argument
1125 if (wsSrcNum.IsEmpty() || m_spPattern.empty()) in ParseNum()
1143 pdfium::span<const wchar_t> spSrcNum = wsSrcNum.span(); in ParseNum()
1153 if (!GetNumericDotIndex(wsSrcNum, wsDotSymbol, &dot_index) && in ParseNum()
1846 WideString wsSrcNum = wsInputNum; in FormatNum() local
1847 wsSrcNum.TrimLeft('0'); in FormatNum()
1848 if (wsSrcNum.IsEmpty() || wsSrcNum[0] == '.') in FormatNum()
1849 wsSrcNum.InsertAtFront('0'); in FormatNum()
1851 CFGAS_Decimal decimal = CFGAS_Decimal(wsSrcNum.AsStringView()); in FormatNum()
1854 wsSrcNum = decimal.ToWideString(); in FormatNum()
[all …]
/external/pdfium/xfa/fxfa/parser/
Dcxfa_node.cpp653 WideString wsSrcNum = wsValue; in FormatNumStr() local
656 if (wsSrcNum[0] == '-') { in FormatNumStr()
658 wsSrcNum.Delete(0, 1); in FormatNumStr()
661 auto dot_index = wsSrcNum.Find('.'); in FormatNumStr()
662 dot_index = !dot_index.has_value() ? wsSrcNum.GetLength() : dot_index; in FormatNumStr()
673 wsOutput += wsSrcNum[i]; in FormatNumStr()
675 if (dot_index.value() < wsSrcNum.GetLength()) { in FormatNumStr()
677 wsOutput += wsSrcNum.Last(wsSrcNum.GetLength() - dot_index.value() - 1); in FormatNumStr()