Searched defs:wide (Results 1 - 21 of 21) sorted by relevance

/external/chromium/base/
H A Dsys_string_conversions_unittest.cc184 std::wstring wide = kConvertRoundtripCases[i]; local
185 std::wstring trip = base::SysNativeMBToWide(base::SysWideToNativeMB(wide));
186 EXPECT_EQ(wide.size(), trip.size());
187 EXPECT_EQ(wide, trip);
192 std::wstring wide = kConvertRoundtripCases[i]; local
193 std::wstring trip = base::SysNativeMBToWide(WideToUTF8(wide));
194 EXPECT_EQ(wide.size(), trip.size());
195 EXPECT_EQ(wide, trip);
199 std::wstring wide = kConvertRoundtripCases[i]; local
200 std::wstring trip = UTF8ToWide(base::SysWideToNativeMB(wide));
[all...]
H A Dsys_string_conversions_linux.cc14 std::string SysWideToUTF8(const std::wstring& wide) { argument
17 return WideToUTF8(wide);
27 std::string SysWideToNativeMB(const std::wstring& wide) { argument
34 for (size_t i = 0; i < wide.size(); ++i) {
35 const wchar_t src = wide[i];
63 // wide input, and |j| tracking the multi-byte output.
65 for (size_t i = 0, j = 0; i < wide.size(); ++i) {
66 const wchar_t src = wide[i];
90 // Calculate the number of wide characters. We walk through the string
91 // without writing the output, counting the number of wide character
[all...]
H A Dsys_string_conversions_win.cc14 std::string SysWideToUTF8(const std::wstring& wide) { argument
15 return SysWideToMultiByte(wide, CP_UTF8);
23 std::string SysWideToNativeMB(const std::wstring& wide) { argument
24 return SysWideToMultiByte(wide, CP_ACP);
43 std::wstring wide;
44 wide.resize(charcount);
45 MultiByteToWideChar(code_page, 0, mb.data(), mb_length, &wide[0], charcount);
47 return wide;
51 std::string SysWideToMultiByte(const std::wstring& wide, uint32 code_page) { argument
52 int wide_length = static_cast<int>(wide
[all...]
H A Dutf_offset_string_conversions_unittest.cc63 const wchar_t* wide; member in struct:base::UTF16ToWideCase
73 UTF16ToWideAndAdjustOffset(BuildString16(utf16_to_wide_cases[i].wide),
H A Dutf_string_conversions.cc52 std::string WideToUTF8(const std::wstring& wide) { argument
56 WideToUTF8(wide.data(), wide.length(), &ret);
75 // When wide == UTF-16, then conversions are a NOP.
81 string16 WideToUTF16(const std::wstring& wide) { argument
82 return wide;
104 string16 WideToUTF16(const std::wstring& wide) { argument
106 WideToUTF16(wide.data(), wide.length(), &ret);
157 // Easy case since we can use the "wide" version
[all...]
H A Dutf_string_conversions_unittest.cc64 // we round-trip all the wide strings through UTF-8 to make sure everything
70 std::wostringstream wide; local
71 wide << UTF8ToWide(utf8.str());
73 EXPECT_EQ(kConvertRoundtripCases[i], wide.str());
89 const wchar_t* wide; member in struct:base::UTF8ToWideCase
121 std::wstring expected(convert_cases[i].wide);
H A Dvalues_unittest.cc134 scoped_ptr<Value> wide_value(Value::CreateStringValue(L"wide"));
144 std::wstring wide = L"http://google.com"; local
147 ASSERT_TRUE(narrow_value->GetAsString(&wide));
150 ASSERT_EQ(std::wstring(L"narrow"), wide);
154 ASSERT_TRUE(wide_value->GetAsString(&wide));
156 ASSERT_EQ(std::string("wide"), narrow);
157 ASSERT_EQ(std::wstring(L"wide"), wide);
158 ASSERT_EQ(ASCIIToUTF16("wide"), utf16);
161 ASSERT_TRUE(utf16_value->GetAsString(&wide));
[all...]
H A Dstring_util_unittest.cc265 std::wstring wide = ASCIIToWide(char_cases[i]); local
266 EXPECT_EQ(wchar_cases[i], wide);
H A Dstring_util.cc548 std::string WideToASCII(const std::wstring& wide) { argument
549 DCHECK(IsStringASCII(wide)) << wide;
550 return std::string(wide.begin(), wide.end());
569 bool WideToLatin1(const std::wstring& wide, std::string* latin1) { argument
571 output.resize(wide.size());
573 for (size_t i = 0; i < wide.size(); i++) {
574 if (wide[i] > 255)
576 output[i] = static_cast<char>(wide[
[all...]
/external/emma/core/java12/com/vladium/jcd/opcodes/
H A DIOpcodeVisitor.java20 void visit (int opcode, boolean wide, int offset, Object ctx); argument
/external/skia/src/animator/
H A DSkTime.cpp79 UnsignedWide wide; local
82 ::Microseconds(&wide);
83 s.set(wide.hi, wide.lo);
/external/chromium/base/i18n/
H A Dicu_string_conversions_unittest.cc90 // On Windows, the field is always identical to |wide|. On Mac and Linux,
92 // BMP (<= U+FFFF). When there is, it is different from |wide| and
93 // is not a real wide string (UTF-32 string) in that each wchar_t in
99 // if it's identical to |wide| on *all* platforms.
106 const wchar_t* wide; member in struct:base::__anon735
239 std::wstring wide; local
243 &wide);
245 EXPECT_EQ(kConvertCodepageCases[i].wide, wide);
255 success = WideToCodepage(wide, kConvertCodepageCase
[all...]
H A Dicu_string_conversions.cc210 bool WideToCodepage(const std::wstring& wide, argument
215 return UTF16ToCodepage(wide, codepage_name, on_error, encoded);
225 // When wchar_t is wider than UChar (16 bits), transform |wide| into a
230 std::vector<UChar> utf16(wide.length() * 2 + 1);
232 wide.c_str(), wide.length(), &status);
242 std::wstring* wide) {
244 return CodepageToUTF16(encoded, codepage_name, on_error, wide);
246 wide->clear();
261 reinterpret_cast<char*>(WriteInto(wide, wchar_max_lengt
239 CodepageToWide(const std::string& encoded, const char* codepage_name, OnStringConversionError::Type on_error, std::wstring* wide) argument
[all...]
/external/stlport/src/
H A Dstring.cpp19 string __WideToASCII(const wchar_t *wide) { argument
20 size_t size = wcslen(wide);
22 wcstombs(buff, wide, size);
/external/chromium/net/base/
H A Descape_unittest.cc112 string16 wide; local
114 &wide));
115 EXPECT_EQ(UTF16ToWideHack(wide),
118 &wide));
119 EXPECT_EQ(UTF16ToWideHack(wide),
/external/proguard/src/proguard/classfile/instruction/
H A DVariableInstruction.java35 public boolean wide; field in class:VariableInstruction
46 public VariableInstruction(boolean wide) argument
48 this.wide = wide;
72 this.wide = requiredVariableIndexSize() > 1 ||
87 this.wide = variableInstruction.wide;
242 // Only make the instruction wide if necessary.
243 wide = requiredVariableIndexSize() > 1 ||
252 return wide;
[all...]
/external/qemu/distrib/sdl-1.2.12/src/timer/macos/
H A DFastTimes.c146 UnsignedWide wide; local
152 wide = (gUpTime) ? (*gA2NS)((*gUpTime)()) :
154 usec1 = (gUseRTC) ? RTCToNano(wide) : WideTo64bit(wide);
160 wide = (gUpTime) ? (*gA2NS)((*gUpTime)()) :
162 usec2 = (gUseRTC) ? RTCToNano(wide) : WideTo64bit(wide);
181 UnsignedWide wide; local
190 wide = (*gA2NS)((*gUpTime)());
191 usec = (double) WideTo64bit(wide) * gScaleUSe
223 UnsignedWide wide; local
[all...]
/external/skia/tests/
H A DSk64Test.cpp149 Sk64 wide; local
154 wide.setMul(rand.nextS(), rand.nextS());
155 SkLONGLONG check = wide.getLongLong();
157 wide.div(denom, Sk64::kTrunc_DivOption);
159 SkLONGLONG w = wide.getLongLong();
164 wide.setMul(rand.nextS(), rand.nextS());
165 wide.abs();
166 denom = wide.getSqrt();
167 int32_t ck = (int32_t)sqrt((double)wide.getLongLong());
171 wide
[all...]
/external/bluetooth/glib/glib/
H A Dguniprop.c444 * Return value: %TRUE if the character is wide
452 static const struct Interval wide[] = { local
464 if (bsearch (GUINT_TO_POINTER (c), wide, G_N_ELEMENTS (wide), sizeof wide[0],
477 * cell under legacy East Asian locales. If a character is wide according to
478 * g_unichar_iswide(), then it is also reported wide with this function, but
487 * Return value: %TRUE if the character is wide in legacy East Asian locales
/external/emma/lib/
H A Demma.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/vladium/ com/vladium/app/ com/vladium/app/IAppVersion ...
/external/proguard/lib/
H A Dproguard.jarMETA-INF/ META-INF/MANIFEST.MF proguard/evaluation/Stack.class Stack.java package proguard ...

Completed in 245 milliseconds