Searched refs:wide (Results 1 - 25 of 49) sorted by relevance

12

/external/clang/test/PCH/
H A Dmultiple_decls.h3 struct wide { int value; }; struct
4 int wide(char);
H A Dmultiple_decls.c9 wide(c);
12 struct wide w;
/external/chromium/base/
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 Dsys_string_conversions_linux.cc14 std::string SysWideToUTF8(const std::wstring& wide) { argument
17 return WideToUTF8(wide);
30 std::string SysWideToNativeMB(const std::wstring& wide) { argument
31 return WideToUTF8(wide);
40 std::string SysWideToNativeMB(const std::wstring& wide) { argument
47 for (size_t i = 0; i < wide.size(); ++i) {
48 const wchar_t src = wide[i];
76 // wide input, and |j| tracking the multi-byte output.
78 for (size_t i = 0, j = 0; i < wide.size(); ++i) {
79 const wchar_t src = wide[
[all...]
H A Dsys_string_conversions.h32 // Converts between wide and UTF-8 representations of a string. On error, the
34 BASE_API std::string SysWideToUTF8(const std::wstring& wide);
37 // Converts between wide and the system multi-byte representations of a string.
40 BASE_API std::string SysWideToNativeMB(const std::wstring& wide);
47 // Converts between 8-bit and wide strings, using the given code page. The
52 BASE_API std::string SysWideToMultiByte(const std::wstring& wide,
67 CFStringRef SysWideToCFStringRef(const std::wstring& wide);
72 NSString* SysWideToNSString(const std::wstring& wide);
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 Dutf_string_conversions.cc53 std::string WideToUTF8(const std::wstring& wide) { argument
57 WideToUTF8(wide.data(), wide.length(), &ret);
76 // When wide == UTF-16, then conversions are a NOP.
82 string16 WideToUTF16(const std::wstring& wide) { argument
83 return wide;
105 string16 WideToUTF16(const std::wstring& wide) { argument
107 WideToUTF16(wide.data(), wide.length(), &ret);
158 // Easy case since we can use the "wide" version
[all...]
H A Dutf_string_conversions.h23 BASE_API std::string WideToUTF8(const std::wstring& wide);
28 BASE_API string16 WideToUTF16(const std::wstring& wide);
H A Dutf_string_conversions_unittest.cc46 // we round-trip all the wide strings through UTF-8 to make sure everything
52 std::wostringstream wide; local
53 wide << UTF8ToWide(utf8.str());
55 EXPECT_EQ(kConvertRoundtripCases[i], wide.str());
71 const wchar_t* wide; member in struct:base::UTF8ToWideCase
103 std::wstring expected(convert_cases[i].wide);
H A Dstring_util.cc424 std::string WideToASCII(const std::wstring& wide) { argument
425 DCHECK(IsStringASCII(wide)) << wide;
426 return std::string(wide.begin(), wide.end());
435 bool WideToLatin1(const std::wstring& wide, std::string* latin1) { argument
437 output.resize(wide.size());
439 for (size_t i = 0; i < wide.size(); i++) {
440 if (wide[i] > 255)
442 output[i] = static_cast<char>(wide[
[all...]
H A Dutf_offset_string_conversions_unittest.cc67 const wchar_t* wide; member in struct:base::UTF16ToWideCase
77 UTF16ToWideAndAdjustOffset(BuildString16(utf16_to_wide_cases[i].wide),
/external/emma/core/java12/com/vladium/jcd/opcodes/
H A DIOpcodeVisitor.java20 void visit (int opcode, boolean wide, int offset, Object ctx); argument
/external/qemu/distrib/sdl-1.2.15/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/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...]
H A DInstructionFactory.java41 boolean wide = false;
45 wide = true;
250 instruction = new VariableInstruction(wide);
/external/chromium/base/i18n/
H A Dicu_string_conversions.h55 // Converts between wide strings and the encoding specified. If the
58 bool WideToCodepage(const std::wstring& wide,
65 std::wstring* wide);
H A Dicu_string_conversions.cc203 bool WideToCodepage(const std::wstring& wide, argument
208 return UTF16ToCodepage(wide, codepage_name, on_error, encoded);
218 // When wchar_t is wider than UChar (16 bits), transform |wide| into a
223 std::vector<UChar> utf16(wide.length() * 2 + 1);
225 reinterpret_cast<const UChar32*>(wide.c_str()),
226 wide.length(), &status);
236 std::wstring* wide) {
238 return CodepageToUTF16(encoded, codepage_name, on_error, wide);
240 wide->clear();
255 reinterpret_cast<char*>(WriteInto(wide, wchar_max_lengt
233 CodepageToWide(const std::string& encoded, const char* codepage_name, OnStringConversionError::Type on_error, std::wstring* wide) argument
[all...]
H A Dicu_string_conversions_unittest.cc96 // On Windows, the field is always identical to |wide|. On Mac and Linux,
98 // BMP (<= U+FFFF). When there is, it is different from |wide| and
99 // is not a real wide string (UTF-32 string) in that each wchar_t in
105 // if it's identical to |wide| on *all* platforms.
112 const wchar_t* wide; member in struct:base::__anon1516
250 std::wstring wide; local
254 &wide);
256 EXPECT_EQ(kConvertCodepageCases[i].wide, wide);
266 success = WideToCodepage(wide, kConvertCodepageCase
[all...]
/external/llvm/test/MC/MachO/ARM/
H A Drelax-thumb2-branches.s3 ble Lfoo @ wide encoding
/external/skia/src/animator/
H A DSkTime.cpp71 UnsignedWide wide; local
74 ::Microseconds(&wide);
75 s.set(wide.hi, wide.lo);
/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/chrome/browser/resources/ntp4/
H A Dtile_page.js42 // displaying a wide arrangement.
74 // The minimum amount of space we need to display a wide grid.
77 // The largest we will ever display a wide grid.
143 var wide = availableSpace >= grid.minWideWidth;
145 var animatedTileValues = wide ?
147 // Animate the difference between three-wide and six-wide.
148 var animatedLeftMargin = wide ?
151 var numRowTiles = wide ? grid.maxColCount : grid.minColCount;
159 var effectiveGridWidth = wide
[all...]
/external/skia/tests/
H A DSk64Test.cpp156 Sk64 wide; local
161 wide.setMul(rand.nextS(), rand.nextS());
162 SkLONGLONG check = wide.getLongLong();
164 wide.div(denom, Sk64::kTrunc_DivOption);
166 SkLONGLONG w = wide.getLongLong();
171 wide.setMul(rand.nextS(), rand.nextS());
172 wide.abs();
173 denom = wide.getSqrt();
174 int32_t ck = (int32_t)sqrt((double)wide.getLongLong());
178 wide
[all...]
/external/chromium/third_party/libjingle/source/talk/base/
H A Dwin32.h70 inline std::string ToUtf8(const wchar_t* wide, size_t len) { argument
71 int len8 = ::WideCharToMultiByte(CP_UTF8, 0, wide, len, NULL, 0, NULL, NULL);
73 ::WideCharToMultiByte(CP_UTF8, 0, wide, len, ns, len8, NULL, NULL);
/external/chromium/net/base/
H A Descape_unittest.cc119 string16 wide; local
121 &wide));
122 EXPECT_EQ(wide, EscapeQueryParamValueUTF8(test_str, true));
124 &wide));
125 EXPECT_EQ(wide, EscapeQueryParamValueUTF8(test_str, false));

Completed in 484 milliseconds

12