Lines Matching refs:locale
99 auto locale = CreateLocaleHelper(); in TEST() local
100 EXPECT_TRUE(locale != nullptr); in TEST()
104 auto locale = CXFA_XMLLocale::Create(pdfium::span<uint8_t>()); in TEST() local
105 EXPECT_TRUE(locale == nullptr); in TEST()
109 auto locale = CreateLocaleHelper(); in TEST() local
110 ASSERT_TRUE(locale != nullptr); in TEST()
112 EXPECT_EQ(L"en_US", locale->GetName()); in TEST()
116 auto locale = CreateLocaleHelper(); in TEST() local
117 ASSERT_TRUE(locale != nullptr); in TEST()
119 EXPECT_EQ(L".", locale->GetDecimalSymbol()); in TEST()
120 EXPECT_EQ(L",", locale->GetGroupingSymbol()); in TEST()
121 EXPECT_EQ(L"%", locale->GetPercentSymbol()); in TEST()
122 EXPECT_EQ(L"-", locale->GetMinusSymbol()); in TEST()
123 EXPECT_EQ(L"$", locale->GetCurrencySymbol()); in TEST()
127 auto locale = CreateLocaleHelper(); in TEST() local
128 ASSERT_TRUE(locale != nullptr); in TEST()
130 EXPECT_EQ(L"GyMdkHmsSEDFwWahKzZ", locale->GetDateTimeSymbols()); in TEST()
134 auto locale = CreateLocaleHelper(); in TEST() local
135 ASSERT_TRUE(locale != nullptr); in TEST()
137 EXPECT_EQ(L"", locale->GetMonthName(24, false)); in TEST()
138 EXPECT_EQ(L"", locale->GetMonthName(-5, false)); in TEST()
139 EXPECT_EQ(L"Feb", locale->GetMonthName(1, true)); in TEST()
140 EXPECT_EQ(L"February", locale->GetMonthName(1, false)); in TEST()
144 auto locale = CreateLocaleHelper(); in TEST() local
145 ASSERT_TRUE(locale != nullptr); in TEST()
147 EXPECT_EQ(L"", locale->GetDayName(24, false)); in TEST()
148 EXPECT_EQ(L"", locale->GetDayName(-5, false)); in TEST()
149 EXPECT_EQ(L"Mon", locale->GetDayName(1, true)); in TEST()
150 EXPECT_EQ(L"Monday", locale->GetDayName(1, false)); in TEST()
154 auto locale = CreateLocaleHelper(); in TEST() local
155 ASSERT_TRUE(locale != nullptr); in TEST()
157 EXPECT_EQ(L"AM", locale->GetMeridiemName(true)); in TEST()
158 EXPECT_EQ(L"PM", locale->GetMeridiemName(false)); in TEST()
162 auto locale = CreateLocaleHelper(); in TEST() local
163 ASSERT_TRUE(locale != nullptr); in TEST()
165 EXPECT_EQ(L"AD", locale->GetEraName(true)); in TEST()
166 EXPECT_EQ(L"BC", locale->GetEraName(false)); in TEST()
170 auto locale = CreateLocaleHelper(); in TEST() local
171 ASSERT_TRUE(locale != nullptr); in TEST()
174 locale->GetDatePattern(FX_LOCALEDATETIMESUBCATEGORY_Short)); in TEST()
176 locale->GetDatePattern(FX_LOCALEDATETIMESUBCATEGORY_Default)); in TEST()
178 locale->GetDatePattern(FX_LOCALEDATETIMESUBCATEGORY_Medium)); in TEST()
180 locale->GetDatePattern(FX_LOCALEDATETIMESUBCATEGORY_Full)); in TEST()
182 locale->GetDatePattern(FX_LOCALEDATETIMESUBCATEGORY_Long)); in TEST()
186 auto locale = CreateLocaleHelper(); in TEST() local
187 ASSERT_TRUE(locale != nullptr); in TEST()
190 locale->GetTimePattern(FX_LOCALEDATETIMESUBCATEGORY_Short)); in TEST()
192 locale->GetTimePattern(FX_LOCALEDATETIMESUBCATEGORY_Default)); in TEST()
194 locale->GetTimePattern(FX_LOCALEDATETIMESUBCATEGORY_Medium)); in TEST()
196 locale->GetTimePattern(FX_LOCALEDATETIMESUBCATEGORY_Full)); in TEST()
198 locale->GetTimePattern(FX_LOCALEDATETIMESUBCATEGORY_Long)); in TEST()
202 auto locale = CreateLocaleHelper(); in TEST() local
203 ASSERT_TRUE(locale != nullptr); in TEST()
206 locale->GetNumPattern(FX_LOCALENUMPATTERN_Percent)); in TEST()
208 locale->GetNumPattern(FX_LOCALENUMPATTERN_Currency)); in TEST()
210 locale->GetNumPattern(FX_LOCALENUMPATTERN_Decimal)); in TEST()
212 locale->GetNumPattern(FX_LOCALENUMPATTERN_Integer)); in TEST()