LibreOffice Module svl (master) 1
|
#include <zforscan.hxx>
Public Types | |
enum class | KeywordLocalization { LocaleLegacy , EnglishOnly , AllowEnglish } |
Specify what keyword localization is allowed when scanning the format code. More... | |
Public Member Functions | |
ImpSvNumberformatScan (SvNumberFormatter *pFormatter) | |
~ImpSvNumberformatScan () | |
void | ChangeIntl (KeywordLocalization eKeywordLocalization=KeywordLocalization::AllowEnglish) |
void | ChangeNullDate (sal_uInt16 nDay, sal_uInt16 nMonth, sal_Int16 nYear) |
void | ChangeStandardPrec (sal_uInt16 nPrec) |
sal_Int32 | ScanFormat (OUString &rString) |
void | CopyInfo (ImpSvNumberformatInfo *pInfo, sal_uInt16 nCnt) |
sal_uInt16 | GetResultStringsCnt () const |
const CharClass & | GetChrCls () const |
const LocaleDataWrapper & | GetLoc () const |
CalendarWrapper & | GetCal () const |
const NfKeywordTable & | GetKeywords () const |
const OUString & | GetSpecialKeyword (NfKeywordIndex eIdx) const |
const OUString & | GetTrueString () const |
const OUString & | GetFalseString () const |
const OUString & | GetRedString () const |
const OUString & | GetBooleanString () const |
const Date & | GetNullDate () const |
const OUString & | GetStandardName () const |
sal_uInt16 | GetStandardPrec () const |
const Color * | GetColor (OUString &sStr) const |
const OUString & | GetCurSymbol () const |
const OUString & | GetCurAbbrev () const |
const OUString & | GetCurString () const |
bool | ReplaceBooleanEquivalent (OUString &rString) |
Replace Boolean equivalent format codes with proper Boolean format. More... | |
void | SetConvertMode (LanguageType eTmpLge, LanguageType eNewLge, bool bSystemToSystem, bool bConvertDateOrder) |
void | SetConvertMode (bool bMode) |
bool | GetConvertMode () const |
LanguageType | GetNewLnge () const |
LanguageType | GetTmpLnge () const |
void | SetNewLnge (LanguageType e) |
sal_uInt8 | GetNatNumModifier () const |
get Thai T speciality More... | |
void | SetNatNumModifier (sal_uInt8 n) |
set Thai T speciality More... | |
SvNumberFormatter * | GetNumberformatter () |
SvNumFormatType | GetScannedType () const |
Get type scanned (so far). More... | |
Static Public Member Functions | |
static const NfKeywordTable & | GetEnglishKeywords () |
static const ::std::vector< Color > & | GetStandardColors () |
static size_t | GetMaxDefaultColors () |
static const Color & | GetRedColor () |
Static Public Attributes | |
static constexpr OUStringLiteral | sErrStr = u"#FMT" |
Private Member Functions | |
ImpSvNumberformatScan (const ImpSvNumberformatScan &)=delete | |
ImpSvNumberformatScan & | operator= (const ImpSvNumberformatScan &)=delete |
void | InitKeywords () const |
void | InitSpecialKeyword (NfKeywordIndex eIdx) const |
void | InitCompatCur () const |
void | SetDependentKeywords () |
void | SkipStrings (sal_uInt16 &i, sal_Int32 &nPos) const |
sal_uInt16 | PreviousKeyword (sal_uInt16 i) const |
sal_uInt16 | NextKeyword (sal_uInt16 i) const |
sal_Unicode | PreviousChar (sal_uInt16 i) const |
sal_Unicode | NextChar (sal_uInt16 i) const |
short | PreviousType (sal_uInt16 i) const |
bool | IsLastBlankBeforeFrac (sal_uInt16 i) const |
void | Reset () |
short | GetKeyWord (const OUString &sSymbol, sal_Int32 nPos, bool &rbFoundEnglish) const |
Determine keyword at nPos. More... | |
bool | IsAmbiguousE (short nKey) const |
bool | Is100SecZero (sal_uInt16 i, bool bHadDecSep) const |
short | Next_Symbol (const OUString &rStr, sal_Int32 &nPos, OUString &sSymbol) const |
sal_Int32 | Symbol_Division (const OUString &rString) |
sal_Int32 | ScanType () |
sal_Int32 | FinalScan (OUString &rString) |
int | FinalScanGetCalendar (sal_Int32 &nPos, sal_uInt16 &i, sal_uInt16 &nResultStringsCnt) |
bool | InsertSymbol (sal_uInt16 &nPos, svt::NfSymbolType eType, const OUString &rStr) |
Insert symbol into nTypeArray and sStrArray, e.g. More... | |
bool | IsDateFragment (size_t nPos1, size_t nPos2) const |
Whether two key symbols are adjacent separated by date separator. More... | |
void | SwapArrayElements (size_t nPos1, size_t nPos2) |
Swap nTypeArray and sStrArray elements at positions. More... | |
Static Private Member Functions | |
static bool | StringEqualsChar (std::u16string_view rStr, sal_Unicode ch) |
static sal_Int32 | RemoveQuotes (OUString &rStr) |
Private Attributes | |
NfKeywordTable | sKeyword |
Date | maNullDate |
OUString | sNameStandardFormat |
sal_uInt16 | nStandardPrec |
SvNumberFormatter * | pFormatter |
css::uno::Reference< css::i18n::XNumberFormatCode > | xNFC |
OUString | sStrArray [NF_MAX_FORMAT_SYMBOLS] |
short | nTypeArray [NF_MAX_FORMAT_SYMBOLS] |
sal_uInt16 | nResultStringsCnt |
SvNumFormatType | eScannedType |
bool | bThousand |
sal_uInt16 | nThousand |
sal_uInt16 | nCntPre |
sal_uInt16 | nCntPost |
sal_uInt16 | nCntExp |
sal_uInt16 | nStringsCnt |
sal_uInt16 | nExpPos |
sal_uInt16 | nBlankPos |
short | nDecPos |
bool | bExp |
bool | bFrac |
bool | bBlank |
bool | bDecSep |
bool | bKeywordsNeedInit |
bool | bCompatCurNeedInit |
OUString | sCurSymbol |
OUString | sCurString |
OUString | sCurAbbrev |
OUString | sBooleanEquivalent1 |
OUString | sBooleanEquivalent2 |
bool | bConvertMode |
bool | mbConvertDateOrder |
LanguageType | eNewLnge |
LanguageType | eTmpLnge |
bool | bConvertSystemToSystem |
sal_Int32 | nCurrPos |
sal_uInt8 | nNatNumModifier |
KeywordLocalization | meKeywordLocalization |
which keywords localization to scan More... | |
Static Private Attributes | |
static const NfKeywordTable | sEnglishKeyword |
static const ::std::vector< Color > | StandardColor |
Definition at line 41 of file zforscan.hxx.
|
strong |
Specify what keyword localization is allowed when scanning the format code.
Enumerator | |
---|---|
LocaleLegacy | unfortunately localized in few locales, otherwise English |
EnglishOnly | only English, no localized keywords |
AllowEnglish | allow English keywords as well as localized keywords |
Definition at line 46 of file zforscan.hxx.
|
explicit |
Definition at line 124 of file zforscan.cxx.
References bCompatCurNeedInit, bConvertMode, bConvertSystemToSystem, bKeywordsNeedInit, SvNumberFormatter::GetComponentContext(), LANGUAGE_DONTKNOW, mbConvertDateOrder, NF_KEY_BLACK, NF_KEY_COLOR, NF_KEY_FIRSTCOLOR, NF_KEY_WHITE, NF_MAX_DEFAULT_COLORS, nStandardPrec, pFormatter, Reset(), and xNFC.
ImpSvNumberformatScan::~ImpSvNumberformatScan | ( | ) |
Definition at line 149 of file zforscan.cxx.
References Reset().
|
privatedelete |
void ImpSvNumberformatScan::ChangeIntl | ( | KeywordLocalization | eKeywordLocalization = KeywordLocalization::AllowEnglish | ) |
Definition at line 154 of file zforscan.cxx.
References bCompatCurNeedInit, bKeywordsNeedInit, meKeywordLocalization, NF_KEY_FALSE, NF_KEY_TRUE, and sKeyword.
void ImpSvNumberformatScan::ChangeNullDate | ( | sal_uInt16 | nDay, |
sal_uInt16 | nMonth, | ||
sal_Int16 | nYear | ||
) |
Definition at line 520 of file zforscan.cxx.
References Date::GetDay(), Date::GetMonth(), Date::GetYear(), Date::IsValidDate(), maNullDate, Date::Normalize(), and SAL_WARN.
void ImpSvNumberformatScan::ChangeStandardPrec | ( | sal_uInt16 | nPrec | ) |
Definition at line 536 of file zforscan.cxx.
References nStandardPrec.
void ImpSvNumberformatScan::CopyInfo | ( | ImpSvNumberformatInfo * | pInfo, |
sal_uInt16 | nCnt | ||
) |
Definition at line 3295 of file zforscan.cxx.
References ImpSvNumberformatInfo::bThousand, bThousand, ImpSvNumberformatInfo::eScannedType, eScannedType, i, ImpSvNumberformatInfo::nCntExp, nCntExp, ImpSvNumberformatInfo::nCntPost, nCntPost, ImpSvNumberformatInfo::nCntPre, nCntPre, NF_MAX_FORMAT_SYMBOLS, svt::NF_SYMBOLTYPE_EMPTY, ImpSvNumberformatInfo::nThousand, nThousand, ImpSvNumberformatInfo::nTypeArray, nTypeArray, ImpSvNumberformatInfo::sStrArray, and sStrArray.
Referenced by SvNumberformat::SvNumberformat().
|
private |
pointer may have changed
init new keywords
Definition at line 1731 of file zforscan.cxx.
References utl::DigitGroupingIterator::advance(), bBlank, bConvertMode, bConvertSystemToSystem, bDecSep, bExp, bFrac, bThousand, SvNumberFormatter::ChangeIntl(), cNarrowNoBreakSpace, cNoBreakSpace, CURRENCY, DATE, DATETIME, DBG_ASSERT, DEFINED, eNewLnge, eScannedType, FinalScanGetCalendar(), FLAG_STANDARD_IN_FORMAT, FRACTION, SvNumberFormatter::GetCharClass(), GetCurString(), GetCurSymbol(), LocaleDataWrapper::getDateOrder(), SvNumberFormatter::GetDateSep(), LocaleDataWrapper::getDigitGrouping(), GetKeyWord(), getLength(), SvNumberFormatter::GetLocaleData(), GetNatNumModifier(), SvNumberFormatter::GetNumDecimalSep(), SvNumberFormatter::GetNumThousandSep(), utl::DigitGroupingIterator::getPos(), LocaleDataWrapper::getTime100SecSep(), LocaleDataWrapper::getTimeSep(), i, InitKeywords(), InsertSymbol(), Is100SecZero(), IsDateFragment(), IsLastBlankBeforeFrac(), MaxCntPost, mbConvertDateOrder, nBlankPos, nCntExp, nCntPost, nCntPre, nCount, nCurrPos, nDecPos, nExpPos, NextChar(), NF_KEY_AAA, NF_KEY_AAAA, NF_KEY_AMPM, NF_KEY_AP, NF_KEY_CCC, NF_KEY_D, NF_KEY_DD, NF_KEY_DDD, NF_KEY_DDDD, NF_KEY_E, NF_KEY_EC, NF_KEY_EEC, NF_KEY_G, NF_KEY_GENERAL, NF_KEY_GG, NF_KEY_GGG, NF_KEY_H, NF_KEY_HH, NF_KEY_M, NF_KEY_MI, NF_KEY_MM, NF_KEY_MMI, NF_KEY_MMM, NF_KEY_MMMM, NF_KEY_MMMMM, NF_KEY_NN, NF_KEY_NNN, NF_KEY_NNNN, NF_KEY_Q, NF_KEY_QQ, NF_KEY_R, NF_KEY_RR, NF_KEY_S, NF_KEY_SS, NF_KEY_THAI_T, NF_KEY_WW, NF_KEY_YY, NF_KEY_YYYY, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_CURRDEL, svt::NF_SYMBOLTYPE_CURRENCY, svt::NF_SYMBOLTYPE_CURREXT, svt::NF_SYMBOLTYPE_DATESEP, svt::NF_SYMBOLTYPE_DECSEP, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_DIGIT, svt::NF_SYMBOLTYPE_EMPTY, svt::NF_SYMBOLTYPE_EXP, svt::NF_SYMBOLTYPE_FRAC, svt::NF_SYMBOLTYPE_FRAC_FDIV, svt::NF_SYMBOLTYPE_FRACBLANK, svt::NF_SYMBOLTYPE_PERCENT, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, svt::NF_SYMBOLTYPE_THSEP, svt::NF_SYMBOLTYPE_TIME100SECSEP, svt::NF_SYMBOLTYPE_TIMESEP, nPos, nResultStringsCnt, nStringsCnt, nThousand, nTypeArray, NUMBER, PERCENT, pFormatter, PreviousChar(), PreviousType(), RemoveQuotes(), SAL_MAX_UINT16, SAL_WARN, SCIENTIFIC, SetNatNumModifier(), sKeyword, sNameStandardFormat, sStrArray, StringEqualsChar(), SwapArrayElements(), TEXT, TIME, and CharClass::uppercase().
Referenced by ScanFormat().
|
private |
Definition at line 1673 of file zforscan.cxx.
References i, svt::NF_SYMBOLTYPE_CALDEL, svt::NF_SYMBOLTYPE_CALENDAR, svt::NF_SYMBOLTYPE_EMPTY, svt::NF_SYMBOLTYPE_STRING, nPos, nStringsCnt, nTypeArray, and sStrArray.
Referenced by FinalScan().
|
inline |
Definition at line 96 of file zforscan.hxx.
References GetKeywords(), and NF_KEY_BOOLEAN.
|
inline |
Definition at line 68 of file zforscan.hxx.
References SvNumberFormatter::GetCalendar(), and pFormatter.
Referenced by SvNumberformat::GetCal().
|
inline |
Definition at line 66 of file zforscan.hxx.
References SvNumberFormatter::GetCharClass(), and pFormatter.
Referenced by SvNumberformat::rChrCls().
const Color * ImpSvNumberformatScan::GetColor | ( | OUString & | sStr | ) | const |
Definition at line 541 of file zforscan.cxx.
References AllowEnglish, o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), bConvertMode, eNewLnge, eTmpLnge, GermanColorName(), SvNumberFormatter::GetCharClass(), GetKeywords(), LanguageTag::getLanguageType(), LocaleDataWrapper::getLoadedLanguageTag(), SvNumberFormatter::GetLocaleData(), SvNumberFormatter::GetUserDefColor(), i, CharClass::isAsciiNumeric(), LANGUAGE_GERMAN, LANGUAGE_GERMAN_AUSTRIAN, LANGUAGE_GERMAN_LIECHTENSTEIN, LANGUAGE_GERMAN_LUXEMBOURG, LANGUAGE_GERMAN_SWISS, meKeywordLocalization, NF_KEY_COLOR, NF_KEY_FIRSTCOLOR, NF_MAX_DEFAULT_COLORS, nIndex, None, nPos, pFormatter, sEnglishKeyword, StandardColor, comphelper::string::strip(), and CharClass::uppercase().
Referenced by SvNumberformat::ConvertLanguage(), ImpSvNumFor::Copy(), and SvNumberformat::SvNumberformat().
|
inline |
Definition at line 163 of file zforscan.hxx.
References bConvertMode.
Referenced by SvNumberformat::SvNumberformat().
|
inline |
Definition at line 130 of file zforscan.hxx.
References bCompatCurNeedInit, InitCompatCur(), and sCurAbbrev.
Referenced by SvNumberformat::ImpDecimalFill(), SvNumberformat::ImpNumberFill(), and SvNumberformat::ImpNumberFillWithThousands().
|
inline |
Definition at line 140 of file zforscan.hxx.
References bCompatCurNeedInit, InitCompatCur(), and sCurString.
Referenced by FinalScan(), and Symbol_Division().
|
inline |
Definition at line 120 of file zforscan.hxx.
References bCompatCurNeedInit, InitCompatCur(), and sCurSymbol.
Referenced by FinalScan().
|
inlinestatic |
Definition at line 79 of file zforscan.hxx.
References sEnglishKeyword.
Referenced by SvNumberFormatter::GetEnglishKeywords().
|
inline |
Definition at line 94 of file zforscan.hxx.
References GetSpecialKeyword(), and NF_KEY_FALSE.
Referenced by ImpSvNumberInputScan::GetLogical(), SvNumberformat::GetOutputString(), and SvNumberformat::ImpGetLogicalOutput().
|
private |
Determine keyword at nPos.
rbFoundEnglish | set if English instead of locale's keyword found, never cleared, thus init with false. |
Definition at line 656 of file zforscan.cxx.
References AllowEnglish, bConvertMode, eNewLnge, eTmpLnge, SvNumberFormatter::GetCharClass(), GetKeywords(), MsLangId::getRealLanguage(), i, LANGUAGE_ENGLISH_US, LANGUAGE_THAI, meKeywordLocalization, NF_KEY_GENERAL, NF_KEY_LASTKEYWORD, NF_KEY_THAI_T, nPos, pFormatter, sEnglishKeyword, and CharClass::uppercase().
Referenced by FinalScan(), and Next_Symbol().
|
inline |
Definition at line 70 of file zforscan.hxx.
References bKeywordsNeedInit, InitKeywords(), and sKeyword.
Referenced by GetBooleanString(), GetColor(), GetKeyWord(), SvNumberformat::GetMappedFormatstring(), SvNumberformat::GetOutputString(), GetRedString(), SvNumberformat::ImpNextSymbol(), SvNumberformat::impTransliterateImpl(), IsAmbiguousE(), and ReplaceBooleanEquivalent().
|
inline |
Definition at line 67 of file zforscan.hxx.
References SvNumberFormatter::GetLocaleData(), and pFormatter.
Referenced by SvNumberformat::rLoc().
|
inlinestatic |
Definition at line 101 of file zforscan.hxx.
References NF_MAX_DEFAULT_COLORS.
Referenced by SvNumberFormatter::GetMaxDefaultColors().
|
inline |
get Thai T speciality
Definition at line 169 of file zforscan.hxx.
References nNatNumModifier.
Referenced by FinalScan(), and SvNumberformat::SvNumberformat().
|
inline |
Definition at line 164 of file zforscan.hxx.
References eNewLnge.
Referenced by SvNumberformat::SvNumberformat().
|
inline |
Definition at line 106 of file zforscan.hxx.
References maNullDate.
Referenced by SvNumberformat::ImpGetDateOutput(), SvNumberformat::ImpGetDateTimeOutput(), and SvNumberformat::ImpGetTimeOutput().
|
inline |
Definition at line 173 of file zforscan.hxx.
References pFormatter.
Referenced by SvNumberformat::GetFormatter(), and SvNumberformat::SvNumberformat().
|
inlinestatic |
Definition at line 116 of file zforscan.hxx.
References StandardColor.
Referenced by SvNumberformat::GetFormatSpecialInfo().
|
inline |
Definition at line 95 of file zforscan.hxx.
References GetKeywords(), and NF_KEY_RED.
|
inline |
Definition at line 64 of file zforscan.hxx.
References nResultStringsCnt.
Referenced by SvNumberformat::SvNumberformat().
|
inline |
Get type scanned (so far).
Definition at line 176 of file zforscan.hxx.
References eScannedType.
Referenced by SvNumberformat::SvNumberformat().
|
inline |
Definition at line 85 of file zforscan.hxx.
References InitSpecialKeyword(), and sKeyword.
Referenced by GetFalseString(), and GetTrueString().
|
inlinestatic |
Definition at line 97 of file zforscan.hxx.
References StandardColor.
Referenced by SvNumberFormatter::GetStandardColors().
|
inline |
Definition at line 107 of file zforscan.hxx.
References bKeywordsNeedInit, InitKeywords(), and sNameStandardFormat.
Referenced by SvNumberformat::SvNumberformat().
|
inline |
Definition at line 115 of file zforscan.hxx.
References nStandardPrec.
Referenced by SvNumberformat::GetOutputString(), SvNumberformat::ImpGetDateTimeOutput(), SvNumberformat::ImpGetOutputStandard(), and SvNumberformat::ImpGetTimeOutput().
|
inline |
Definition at line 165 of file zforscan.hxx.
References eTmpLnge.
Referenced by SvNumberformat::SvNumberformat().
|
inline |
Definition at line 93 of file zforscan.hxx.
References GetSpecialKeyword(), and NF_KEY_TRUE.
Referenced by ImpSvNumberInputScan::GetLogical(), SvNumberformat::GetOutputString(), and SvNumberformat::ImpGetLogicalOutput().
|
private |
Definition at line 191 of file zforscan.cxx.
References bCompatCurNeedInit, SvNumberFormatter::GetCharClass(), SvNumberFormatter::GetCompatibilityCurrency(), pFormatter, sCurAbbrev, sCurString, sCurSymbol, and CharClass::uppercase().
Referenced by GetCurAbbrev(), GetCurString(), GetCurSymbol(), and SetDependentKeywords().
|
private |
Definition at line 201 of file zforscan.cxx.
References bKeywordsNeedInit, and SetDependentKeywords().
Referenced by FinalScan(), GetKeywords(), GetStandardName(), Next_Symbol(), and ReplaceBooleanEquivalent().
|
private |
Definition at line 164 of file zforscan.cxx.
References SvNumberFormatter::GetCharClass(), LocaleDataWrapper::getFalseWord(), SvNumberFormatter::GetLocaleData(), LocaleDataWrapper::getTrueWord(), NF_KEY_FALSE, NF_KEY_TRUE, pFormatter, SAL_WARN, sEnglishKeyword, sKeyword, and CharClass::uppercase().
Referenced by GetSpecialKeyword(), and SetDependentKeywords().
|
private |
Insert symbol into nTypeArray and sStrArray, e.g.
grouping separator. If at nPos-1 a symbol type NF_SYMBOLTYPE_EMPTY is present, that is reused instead of shifting all one up and nPos is decremented!
Definition at line 1644 of file zforscan.cxx.
References eType, i, NF_MAX_FORMAT_SYMBOLS, svt::NF_SYMBOLTYPE_EMPTY, nPos, nResultStringsCnt, nStringsCnt, nTypeArray, and sStrArray.
Referenced by FinalScan().
|
private |
Definition at line 1240 of file zforscan.cxx.
References i, NF_KEY_S, NF_KEY_SS, svt::NF_SYMBOLTYPE_STRING, nTypeArray, and PreviousKeyword().
Referenced by FinalScan(), and ScanType().
|
inlineprivate |
Definition at line 262 of file zforscan.hxx.
References GetKeywords(), NF_KEY_E, and NF_KEY_EC.
Referenced by Next_Symbol().
|
private |
Whether two key symbols are adjacent separated by date separator.
This can only be used at the end of FinalScan() after NF_SYMBOLTYPE_DATESEP has already been set.
Definition at line 1720 of file zforscan.cxx.
References svt::NF_SYMBOLTYPE_DATESEP, and nTypeArray.
Referenced by FinalScan().
|
private |
Definition at line 1186 of file zforscan.cxx.
References i, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_STRING, nStringsCnt, nTypeArray, and sStrArray.
Referenced by FinalScan().
|
private |
Definition at line 758 of file zforscan.cxx.
References eType, SvNumberFormatter::GetCharClass(), SvNumberFormatter::GetDateSep(), GetKeyWord(), SvNumberFormatter::GetLocaleData(), SvNumberFormatter::GetNumDecimalSep(), SvNumberFormatter::GetNumThousandSep(), LocaleDataWrapper::getTime100SecSep(), LocaleDataWrapper::getTimeSep(), InitKeywords(), IsAmbiguousE(), CharClass::isLetter(), nCurrPos, NF_KEY_E, NF_KEY_GENERAL, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, nPos, pFormatter, sCurString, sEnglishKeyword, sKeyword, sNameStandardFormat, StringEqualsChar(), and CharClass::uppercase().
Referenced by Symbol_Division().
|
private |
Definition at line 1164 of file zforscan.cxx.
References getLength(), i, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_EMPTY, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, nStringsCnt, nTypeArray, and sStrArray.
Referenced by FinalScan().
|
private |
Definition at line 1110 of file zforscan.cxx.
References i, nStringsCnt, and nTypeArray.
Referenced by ScanType().
|
privatedelete |
|
private |
Definition at line 1142 of file zforscan.cxx.
References getLength(), i, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_EMPTY, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, nStringsCnt, nTypeArray, and sStrArray.
Referenced by FinalScan(), and ScanType().
|
private |
Definition at line 1092 of file zforscan.cxx.
References i, nStringsCnt, and nTypeArray.
Referenced by Is100SecZero(), and ScanType().
|
private |
Definition at line 1128 of file zforscan.cxx.
References i, svt::NF_SYMBOLTYPE_EMPTY, nStringsCnt, and nTypeArray.
Referenced by FinalScan().
|
staticprivate |
bool ImpSvNumberformatScan::ReplaceBooleanEquivalent | ( | OUString & | rString | ) |
Replace Boolean equivalent format codes with proper Boolean format.
Definition at line 3318 of file zforscan.cxx.
References GetKeywords(), InitKeywords(), NF_KEY_BOOLEAN, sBooleanEquivalent1, and sBooleanEquivalent2.
Referenced by SvNumberformat::SvNumberformat().
|
private |
Definition at line 1220 of file zforscan.cxx.
References bBlank, bDecSep, bExp, bFrac, bThousand, eScannedType, nBlankPos, nCntExp, nCntPost, nCntPre, nDecPos, nExpPos, nNatNumModifier, nResultStringsCnt, nStringsCnt, nThousand, and UNDEFINED.
Referenced by ImpSvNumberformatScan(), Symbol_Division(), and ~ImpSvNumberformatScan().
sal_Int32 ImpSvNumberformatScan::ScanFormat | ( | OUString & | rString | ) |
Definition at line 3281 of file zforscan.cxx.
References FinalScan(), ScanType(), and Symbol_Division().
Referenced by SvNumberformat::SvNumberformat().
|
private |
Definition at line 1249 of file zforscan.cxx.
References bDecSep, CURRENCY, DATE, DATETIME, DEFINED, eScannedType, FRACTION, SvNumberFormatter::GetDateSep(), getLength(), SvNumberFormatter::GetLocaleData(), LocaleDataWrapper::getTime100SecSep(), LocaleDataWrapper::getTimeSep(), i, Is100SecZero(), LOGICAL, nCurrPos, NextKeyword(), NF_KEY_AAA, NF_KEY_AAAA, NF_KEY_AMPM, NF_KEY_AP, NF_KEY_BOOLEAN, NF_KEY_CCC, NF_KEY_D, NF_KEY_DD, NF_KEY_DDD, NF_KEY_DDDD, NF_KEY_E, NF_KEY_EC, NF_KEY_EEC, NF_KEY_G, NF_KEY_GENERAL, NF_KEY_GG, NF_KEY_GGG, NF_KEY_H, NF_KEY_HH, NF_KEY_M, NF_KEY_MI, NF_KEY_MM, NF_KEY_MMI, NF_KEY_MMM, NF_KEY_MMMM, NF_KEY_MMMMM, NF_KEY_NN, NF_KEY_NNN, NF_KEY_NNNN, NF_KEY_Q, NF_KEY_QQ, NF_KEY_R, NF_KEY_RR, NF_KEY_S, NF_KEY_SS, NF_KEY_WW, NF_KEY_YY, NF_KEY_YYYY, svt::NF_SYMBOLTYPE_DEL, svt::NF_SYMBOLTYPE_STRING, nPos, nStringsCnt, nTypeArray, NUMBER, PERCENT, pFormatter, PreviousChar(), PreviousKeyword(), SCIENTIFIC, SkipStrings(), sStrArray, TEXT, TIME, and UNDEFINED.
Referenced by ScanFormat().
|
inline |
Definition at line 162 of file zforscan.hxx.
References bConvertMode.
|
inline |
Definition at line 152 of file zforscan.hxx.
References bConvertMode, bConvertSystemToSystem, eNewLnge, eTmpLnge, and mbConvertDateOrder.
|
private |
all capital letters
Definition at line 256 of file zforscan.cxx.
References o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::anyOf(), EnglishOnly, GermanColorName(), SvNumberFormatter::GetCharClass(), LanguageTag::getLanguageType(), LocaleDataWrapper::getLoadedLanguageTag(), LanguageTag::getLocale(), SvNumberFormatter::GetLocaleData(), InitCompatCur(), InitSpecialKeyword(), LANGUAGE_DANISH, LANGUAGE_DUTCH, LANGUAGE_DUTCH_BELGIAN, LANGUAGE_FINNISH, LANGUAGE_FRENCH, LANGUAGE_FRENCH_BELGIAN, LANGUAGE_FRENCH_CANADIAN, LANGUAGE_FRENCH_LUXEMBOURG, LANGUAGE_FRENCH_MONACO, LANGUAGE_FRENCH_SWISS, LANGUAGE_GERMAN, LANGUAGE_GERMAN_AUSTRIAN, LANGUAGE_GERMAN_LIECHTENSTEIN, LANGUAGE_GERMAN_LUXEMBOURG, LANGUAGE_GERMAN_SWISS, LANGUAGE_ITALIAN, LANGUAGE_ITALIAN_SWISS, LANGUAGE_NORWEGIAN, LANGUAGE_NORWEGIAN_BOKMAL, LANGUAGE_NORWEGIAN_NYNORSK, LANGUAGE_PORTUGUESE, LANGUAGE_PORTUGUESE_BRAZILIAN, LANGUAGE_SPANISH_ARGENTINA, LANGUAGE_SPANISH_BOLIVIA, LANGUAGE_SPANISH_CHILE, LANGUAGE_SPANISH_COLOMBIA, LANGUAGE_SPANISH_COSTARICA, LANGUAGE_SPANISH_DATED, LANGUAGE_SPANISH_DOMINICAN_REPUBLIC, LANGUAGE_SPANISH_ECUADOR, LANGUAGE_SPANISH_EL_SALVADOR, LANGUAGE_SPANISH_GUATEMALA, LANGUAGE_SPANISH_HONDURAS, LANGUAGE_SPANISH_MEXICAN, LANGUAGE_SPANISH_MODERN, LANGUAGE_SPANISH_NICARAGUA, LANGUAGE_SPANISH_PANAMA, LANGUAGE_SPANISH_PARAGUAY, LANGUAGE_SPANISH_PERU, LANGUAGE_SPANISH_PUERTO_RICO, LANGUAGE_SPANISH_URUGUAY, LANGUAGE_SPANISH_VENEZUELA, LANGUAGE_SWEDISH, LANGUAGE_SWEDISH_FINLAND, LANGUAGE_THAI, lcl_extractStandardGeneralName(), meKeywordLocalization, NF_KEY_AAA, NF_KEY_AAAA, NF_KEY_BLACK, NF_KEY_BLUE, NF_KEY_BOOLEAN, NF_KEY_BROWN, NF_KEY_COLOR, NF_KEY_CYAN, NF_KEY_D, NF_KEY_DD, NF_KEY_DDD, NF_KEY_DDDD, NF_KEY_FALSE, NF_KEY_G, NF_KEY_GENERAL, NF_KEY_GG, NF_KEY_GGG, NF_KEY_GREEN, NF_KEY_GREY, NF_KEY_H, NF_KEY_HH, NF_KEY_M, NF_KEY_MAGENTA, NF_KEY_MM, NF_KEY_MMM, NF_KEY_MMMM, NF_KEY_MMMMM, NF_KEY_RED, NF_KEY_THAI_T, NF_KEY_TRUE, NF_KEY_WHITE, NF_KEY_YELLOW, NF_KEY_YY, NF_KEY_YYYY, NF_NUMBER_STANDARD, pFormatter, sBooleanEquivalent1, sBooleanEquivalent2, sEnglishKeyword, sKeyword, sNameStandardFormat, CharClass::uppercase(), and xNFC.
Referenced by InitKeywords().
|
inline |
set Thai T speciality
Definition at line 171 of file zforscan.hxx.
References n, and nNatNumModifier.
Referenced by FinalScan().
|
inline |
Definition at line 166 of file zforscan.hxx.
References eNewLnge.
Referenced by SvNumberformat::SvNumberformat().
|
private |
Definition at line 1081 of file zforscan.cxx.
References i, svt::NF_SYMBOLTYPE_BLANK, svt::NF_SYMBOLTYPE_STAR, svt::NF_SYMBOLTYPE_STRING, nPos, nStringsCnt, nTypeArray, and sStrArray.
Referenced by ScanType().
|
inlinestaticprivate |
Definition at line 295 of file zforscan.hxx.
References ch.
Referenced by FinalScan(), and Next_Symbol().
|
private |
Swap nTypeArray and sStrArray elements at positions.
Definition at line 1725 of file zforscan.cxx.
References nTypeArray, and sStrArray.
Referenced by FinalScan().
|
private |
Definition at line 1016 of file zforscan.cxx.
References SvNumberFormatter::GetCharClass(), GetCurString(), getLength(), SvNumberformat::GetQuoteEnd(), nCurrPos, Next_Symbol(), NF_MAX_FORMAT_SYMBOLS, svt::NF_SYMBOLTYPE_STAR, nPos, nStringsCnt, nTypeArray, pFormatter, Reset(), sStrArray, and CharClass::uppercase().
Referenced by ScanFormat().
|
private |
Definition at line 207 of file zforscan.hxx.
Referenced by FinalScan(), and Reset().
|
mutableprivate |
Definition at line 210 of file zforscan.hxx.
Referenced by ChangeIntl(), GetCurAbbrev(), GetCurString(), GetCurSymbol(), ImpSvNumberformatScan(), and InitCompatCur().
|
private |
Definition at line 217 of file zforscan.hxx.
Referenced by FinalScan(), GetColor(), GetConvertMode(), GetKeyWord(), ImpSvNumberformatScan(), and SetConvertMode().
|
private |
Definition at line 223 of file zforscan.hxx.
Referenced by FinalScan(), ImpSvNumberformatScan(), and SetConvertMode().
|
private |
Definition at line 208 of file zforscan.hxx.
Referenced by FinalScan(), Reset(), and ScanType().
|
private |
Definition at line 205 of file zforscan.hxx.
Referenced by FinalScan(), and Reset().
|
private |
Definition at line 206 of file zforscan.hxx.
Referenced by FinalScan(), and Reset().
|
mutableprivate |
Definition at line 209 of file zforscan.hxx.
Referenced by ChangeIntl(), GetKeywords(), GetStandardName(), ImpSvNumberformatScan(), and InitKeywords().
|
private |
Definition at line 195 of file zforscan.hxx.
Referenced by CopyInfo(), FinalScan(), and Reset().
|
private |
Definition at line 220 of file zforscan.hxx.
Referenced by FinalScan(), GetColor(), GetKeyWord(), GetNewLnge(), SetConvertMode(), and SetNewLnge().
|
private |
Definition at line 194 of file zforscan.hxx.
Referenced by CopyInfo(), FinalScan(), GetScannedType(), Reset(), and ScanType().
|
private |
Definition at line 221 of file zforscan.hxx.
Referenced by GetColor(), GetKeyWord(), GetTmpLnge(), and SetConvertMode().
|
private |
Definition at line 184 of file zforscan.hxx.
Referenced by ChangeNullDate(), and GetNullDate().
|
private |
Definition at line 218 of file zforscan.hxx.
Referenced by FinalScan(), ImpSvNumberformatScan(), and SetConvertMode().
|
private |
which keywords localization to scan
Definition at line 230 of file zforscan.hxx.
Referenced by ChangeIntl(), GetColor(), GetKeyWord(), and SetDependentKeywords().
|
private |
Definition at line 203 of file zforscan.hxx.
Referenced by FinalScan(), and Reset().
|
private |
Definition at line 199 of file zforscan.hxx.
Referenced by CopyInfo(), FinalScan(), and Reset().
|
private |
Definition at line 198 of file zforscan.hxx.
Referenced by CopyInfo(), FinalScan(), and Reset().
|
private |
Definition at line 197 of file zforscan.hxx.
Referenced by CopyInfo(), FinalScan(), and Reset().
|
private |
Definition at line 226 of file zforscan.hxx.
Referenced by FinalScan(), Next_Symbol(), ScanType(), and Symbol_Division().
|
private |
Definition at line 204 of file zforscan.hxx.
Referenced by FinalScan(), and Reset().
|
private |
Definition at line 202 of file zforscan.hxx.
Referenced by FinalScan(), and Reset().
|
private |
Definition at line 228 of file zforscan.hxx.
Referenced by GetNatNumModifier(), Reset(), and SetNatNumModifier().
|
private |
Definition at line 193 of file zforscan.hxx.
Referenced by FinalScan(), GetResultStringsCnt(), InsertSymbol(), and Reset().
|
private |
Definition at line 186 of file zforscan.hxx.
Referenced by ChangeStandardPrec(), GetStandardPrec(), and ImpSvNumberformatScan().
|
private |
Definition at line 201 of file zforscan.hxx.
Referenced by FinalScan(), FinalScanGetCalendar(), InsertSymbol(), IsLastBlankBeforeFrac(), NextChar(), NextKeyword(), PreviousChar(), PreviousKeyword(), PreviousType(), Reset(), ScanType(), SkipStrings(), and Symbol_Division().
|
private |
Definition at line 196 of file zforscan.hxx.
Referenced by CopyInfo(), FinalScan(), and Reset().
|
private |
Definition at line 191 of file zforscan.hxx.
Referenced by CopyInfo(), FinalScan(), FinalScanGetCalendar(), InsertSymbol(), Is100SecZero(), IsDateFragment(), IsLastBlankBeforeFrac(), NextChar(), NextKeyword(), PreviousChar(), PreviousKeyword(), PreviousType(), ScanType(), SkipStrings(), SwapArrayElements(), and Symbol_Division().
|
private |
Definition at line 187 of file zforscan.hxx.
Referenced by FinalScan(), GetCal(), GetChrCls(), GetColor(), GetKeyWord(), GetLoc(), GetNumberformatter(), ImpSvNumberformatScan(), InitCompatCur(), InitSpecialKeyword(), Next_Symbol(), ScanType(), SetDependentKeywords(), and Symbol_Division().
|
private |
Definition at line 214 of file zforscan.hxx.
Referenced by ReplaceBooleanEquivalent(), and SetDependentKeywords().
|
private |
Definition at line 215 of file zforscan.hxx.
Referenced by ReplaceBooleanEquivalent(), and SetDependentKeywords().
|
private |
Definition at line 213 of file zforscan.hxx.
Referenced by GetCurAbbrev(), and InitCompatCur().
|
private |
Definition at line 212 of file zforscan.hxx.
Referenced by GetCurString(), InitCompatCur(), and Next_Symbol().
|
private |
Definition at line 211 of file zforscan.hxx.
Referenced by GetCurSymbol(), and InitCompatCur().
|
staticprivate |
Definition at line 182 of file zforscan.hxx.
Referenced by GetColor(), GetEnglishKeywords(), GetKeyWord(), InitSpecialKeyword(), Next_Symbol(), and SetDependentKeywords().
|
staticconstexpr |
Definition at line 178 of file zforscan.hxx.
Referenced by SvNumberFormatter::GetInputLineString(), SvNumberformat::ImpGetDateOutput(), SvNumberformat::ImpGetDateTimeOutput(), SvNumberformat::ImpGetFractionOutput(), SvNumberformat::ImpGetNumberOutput(), and SvNumberformat::ImpGetTimeOutput().
|
private |
Definition at line 181 of file zforscan.hxx.
Referenced by ChangeIntl(), FinalScan(), GetKeywords(), GetSpecialKeyword(), InitSpecialKeyword(), Next_Symbol(), and SetDependentKeywords().
|
private |
Definition at line 185 of file zforscan.hxx.
Referenced by FinalScan(), GetStandardName(), Next_Symbol(), and SetDependentKeywords().
|
private |
Definition at line 190 of file zforscan.hxx.
Referenced by CopyInfo(), FinalScan(), FinalScanGetCalendar(), InsertSymbol(), IsLastBlankBeforeFrac(), NextChar(), PreviousChar(), ScanType(), SkipStrings(), SwapArrayElements(), and Symbol_Division().
|
staticprivate |
Definition at line 183 of file zforscan.hxx.
Referenced by GetColor(), GetRedColor(), and GetStandardColors().
|
private |
Definition at line 188 of file zforscan.hxx.
Referenced by ImpSvNumberformatScan(), and SetDependentKeywords().