Home
last modified time | relevance | path

Searched refs:wch (Results 1 – 25 of 35) sorted by relevance

12

/external/pdfium/core/fxcrt/css/
Dcfx_csssyntaxparser.cpp19 bool IsSelectorStart(wchar_t wch) { in IsSelectorStart() argument
20 return wch == '.' || wch == '#' || wch == '*' || FXSYS_iswalpha(wch); in IsSelectorStart()
57 wchar_t wch; in DoSyntaxParse() local
59 wch = m_TextPlane.GetChar(); in DoSyntaxParse()
62 switch (wch) { in DoSyntaxParse()
77 if (wch <= ' ') { in DoSyntaxParse()
79 } else if (IsSelectorStart(wch)) { in DoSyntaxParse()
90 switch (wch) { in DoSyntaxParse()
113 AppendChar(wch); in DoSyntaxParse()
118 switch (wch) { in DoSyntaxParse()
[all …]
Dcfx_cssvaluelistparser.cpp30 wchar_t wch = *m_pCur; in NextValue() local
31 if (wch == '#') { in NextValue()
35 } else if (std::iswdigit(wch) || wch == '.' || wch == '-' || wch == '+') { in NextValue()
41 } else if (wch == '\"' || wch == '\'') { in NextValue()
44 *iLength = SkipTo(wch, false, false); in NextValue()
60 int32_t CFX_CSSValueListParser::SkipTo(wchar_t wch, in SkipTo() argument
65 while (m_pCur < m_pEnd && *m_pCur != wch) { in SkipTo()
Dcfx_cssselector.cpp19 wchar_t wch = *psz; in GetCSSNameLen() local
20 if (!FXSYS_iswalnum(wch) && wch != '_' && wch != '-') in GetCSSNameLen()
69 wchar_t wch = *psz; in FromString() local
70 if (FXSYS_iswalpha(wch) || wch == '*') { in FromString()
71 int32_t iNameLen = wch == '*' ? 1 : GetCSSNameLen(psz, pEnd); in FromString()
80 } else if (wch == ' ') { in FromString()
Dcfx_csstextbuf.cpp24 void CFX_CSSTextBuf::AppendChar(wchar_t wch) { in AppendChar() argument
28 m_pBuffer[m_iDatLen++] = wch; in AppendChar()
Dcfx_csstextbuf.h18 void AppendChar(wchar_t wch);
Dcfx_cssvaluelistparser.h23 int32_t SkipTo(wchar_t wch, bool breakOnSpace, bool matchBrackets);
Dcfx_csssyntaxparser.h57 bool AppendChar(wchar_t wch);
/external/pdfium/core/fxcrt/
Dfx_unicode.cpp16 wchar_t GetMirrorChar(wchar_t wch, uint32_t dwProps) { in GetMirrorChar() argument
19 return wch; in GetMirrorChar()
21 return idx < kFXTextLayoutBidiMirrorSize ? kFXTextLayoutBidiMirror[idx] : wch; in GetMirrorChar()
26 uint32_t FX_GetUnicodeProperties(wchar_t wch) { in FX_GetUnicodeProperties() argument
27 size_t idx = static_cast<size_t>(wch); in FX_GetUnicodeProperties()
33 wchar_t FX_GetMirrorChar(wchar_t wch) { in FX_GetMirrorChar() argument
34 return GetMirrorChar(wch, FX_GetUnicodeProperties(wch)); in FX_GetMirrorChar()
38 wchar_t FX_GetMirrorChar(wchar_t wch, uint32_t dwProps) { in FX_GetMirrorChar() argument
39 return GetMirrorChar(wch, dwProps); in FX_GetMirrorChar()
Dcfx_seekablestreamproxy.cpp108 uint16_t wch; in SwapByteOrder() local
111 wch = static_cast<uint16_t>(*pStr); in SwapByteOrder()
112 wch = (wch >> 8) | (wch << 8); in SwapByteOrder()
113 wch &= 0x00FF; in SwapByteOrder()
114 *pStr = wch; in SwapByteOrder()
121 wch = static_cast<uint16_t>(*pStr); in SwapByteOrder()
122 wch = (wch >> 8) | (wch << 8); in SwapByteOrder()
123 *pStr = wch; in SwapByteOrder()
Dfx_extension.h44 inline bool FXSYS_iswalpha(wchar_t wch) { in FXSYS_iswalpha() argument
45 return FXSYS_isupper(wch) || FXSYS_islower(wch); in FXSYS_iswalpha()
48 inline bool FXSYS_iswalnum(wchar_t wch) { in FXSYS_iswalnum() argument
49 return FXSYS_iswalpha(wch) || std::iswdigit(wch); in FXSYS_iswalnum()
Dfx_extension.cpp31 wchar_t wch = pwsStr[iUsedLen]; in FXSYS_wcstof() local
32 if (!std::iswdigit(wch)) in FXSYS_wcstof()
35 fValue = fValue * 10.0f + (wch - L'0'); in FXSYS_wcstof()
42 wchar_t wch = pwsStr[iUsedLen]; in FXSYS_wcstof() local
43 if (!std::iswdigit(wch)) in FXSYS_wcstof()
46 fValue += (wch - L'0') * fPrecise; in FXSYS_wcstof()
Dfx_unicode.h12 uint32_t FX_GetUnicodeProperties(wchar_t wch);
13 wchar_t FX_GetMirrorChar(wchar_t wch);
44 wchar_t FX_GetMirrorChar(wchar_t wch, uint32_t dwProps);
Dfx_arabic.cpp179 wchar_t GetFormChar(wchar_t wch, wchar_t prev, wchar_t next) { in GetFormChar() argument
180 CFX_Char c(wch, FX_GetUnicodeProperties(wch)); in GetFormChar()
Dfx_arabic.h18 wchar_t GetFormChar(wchar_t wch, wchar_t prev, wchar_t next);
Dcfx_widetextbuf.h16 void AppendChar(wchar_t wch);
Dfx_bidi.h35 bool AppendChar(wchar_t wch);
/external/pdfium/xfa/fgas/layout/
Dcfx_txtbreak.cpp51 wchar_t wch = pCurChar->char_code(); in AppendChar_Combination() local
58 wForm = wch; in AppendChar_Combination()
63 if (wch == 0x0651) { in AppendChar_Combination()
69 } else if (wch >= 0x064C && wch <= 0x0650) { in AppendChar_Combination()
71 wForm = FX_GetArabicFromShaddaTable(wch); in AppendChar_Combination()
98 wchar_t wch = pCurChar->char_code(); in AppendChar_Control() local
99 switch (wch) { in AppendChar_Control()
111 if (wch == m_wParagraphBreakChar) in AppendChar_Control()
180 wchar_t wch = pCurChar->char_code(); in AppendChar_Others() local
181 wchar_t wForm = wch; in AppendChar_Others()
[all …]
Dcfx_break.cpp127 void CFX_Break::SetDefaultChar(wchar_t wch) { in SetDefaultChar() argument
128 m_wDefChar = wch; in SetDefaultChar()
140 void CFX_Break::SetParagraphBreakChar(wchar_t wch) { in SetParagraphBreakChar() argument
141 if (wch != L'\r' && wch != L'\n') in SetParagraphBreakChar()
143 m_wParagraphBreakChar = wch; in SetParagraphBreakChar()
Dcfx_rtfbreak.cpp67 CFX_BreakType CFX_RTFBreak::AppendChar(wchar_t wch) { in AppendChar() argument
70 uint32_t dwProps = FX_GetUnicodeProperties(wch); in AppendChar()
72 m_pCurLine->m_LineChars.emplace_back(wch, dwProps, m_iHorizontalScale, in AppendChar()
695 wchar_t wch = pText->pStr[i]; in GetDisplayPos() local
697 uint32_t dwProps = FX_GetUnicodeProperties(wch); in GetDisplayPos()
713 wchar_t wForm = wch; in GetDisplayPos()
722 wForm = pdfium::arabic::GetFormChar(wch, wPrev, wNext); in GetDisplayPos()
724 wForm = FX_GetMirrorChar(wch, dwProps); in GetDisplayPos()
730 pCharPos->m_GlyphIndex = wch; in GetDisplayPos()
734 pCharPos->m_GlyphIndex = pFont->GetGlyphIndex(wch); in GetDisplayPos()
[all …]
Dcfx_break.h52 void SetParagraphBreakChar(wchar_t wch);
53 void SetDefaultChar(wchar_t wch);
/external/pdfium/xfa/fde/
Dcfde_textout.cpp223 for (const wchar_t& wch : str) { in CalcLogicSize() local
224 if (!break_char_is_set && (wch == L'\n' || wch == L'\r')) { in CalcLogicSize()
226 m_pTxtBreak->SetParagraphBreakChar(wch); in CalcLogicSize()
228 dwBreakStatus = m_pTxtBreak->AppendChar(wch); in CalcLogicSize()
340 for (const auto& wch : str) { in LoadText() local
341 dwBreakStatus = m_pTxtBreak->AppendChar(wch); in LoadText()
/external/libcxx/include/
D__bsd_locale_defaults.h24 #define __libcpp_wctob_l(wch, loc) wctob_l(wch, loc) argument
/external/pdfium/core/fpdftext/
Dcpdf_linkextract.cpp283 wchar_t wch = (*str)[i]; in CheckMailLink() local
284 if (wch == L'-' || FXSYS_iswalnum(wch)) in CheckMailLink()
287 if (wch != L'.' || i == pPos + 1) { in CheckMailLink()
Dcpdf_textpage.cpp69 size_t Unicode_GetNormalization(wchar_t wch, wchar_t* pDst) { in Unicode_GetNormalization() argument
70 wch = wch & 0xFFFF; in Unicode_GetNormalization()
71 wchar_t wFind = g_UnicodeData_Normalization[wch]; in Unicode_GetNormalization()
74 *pDst = wch; in Unicode_GetNormalization()
78 wch = wFind - 0x8000; in Unicode_GetNormalization()
81 wch = wFind & 0x0FFF; in Unicode_GetNormalization()
86 pMap = g_UnicodeData_Normalization_Map4 + wch; in Unicode_GetNormalization()
89 pMap += wch; in Unicode_GetNormalization()
/external/pdfium/xfa/fxfa/
Dcxfa_textlayout.cpp886 wchar_t wch = wsText[i]; in AppendChar() local
887 if (wch == 0xA0) in AppendChar()
888 wch = 0x20; in AppendChar()
890 dwStatus = m_pBreak->AppendChar(wch); in AppendChar()
923 wchar_t wch = 0, wPrev = 0; in ProcessText() local
925 wch = psz[i]; in ProcessText()
926 if (wch < 0x20) in ProcessText()
927 wch = 0x20; in ProcessText()
928 if (wch == 0x20 && wPrev == 0x20) in ProcessText()
931 wPrev = wch; in ProcessText()
[all …]

12