Home
last modified time | relevance | path

Searched refs:CString (Results 1 – 25 of 121) sorted by relevance

12345

/external/chromium_org/third_party/WebKit/Source/wtf/testing/
DWTFTestHelpersTest.cpp45 CString toCStringThroughPrinter(const String& string) in toCStringThroughPrinter()
50 return CString(result.data(), result.length()); in toCStringThroughPrinter()
55 EXPECT_EQ(CString("\"Hello!\""), toCStringThroughPrinter("Hello!")); in TEST()
56 EXPECT_EQ(CString("\"\\\"\""), toCStringThroughPrinter("\"")); in TEST()
57 EXPECT_EQ(CString("\"\\\\\""), toCStringThroughPrinter("\\")); in TEST()
58 …EXPECT_EQ(CString("\"\\u0000\\u0001\\u0002\\u0003\\u0004\\u0005\\u0006\\u0007\""), toCStringThroug… in TEST()
59 …EXPECT_EQ(CString("\"\\u0008\\t\\n\\u000B\\u000C\\r\\u000E\\u000F\""), toCStringThroughPrinter(Str… in TEST()
60 …EXPECT_EQ(CString("\"\\u0010\\u0011\\u0012\\u0013\\u0014\\u0015\\u0016\\u0017\""), toCStringThroug… in TEST()
61 …EXPECT_EQ(CString("\"\\u0018\\u0019\\u001A\\u001B\\u001C\\u001D\\u001E\\u001F\""), toCStringThroug… in TEST()
62 EXPECT_EQ(CString("\"\\u007F\\u0080\\u0081\""), toCStringThroughPrinter("\x7F\x80\x81")); in TEST()
[all …]
/external/chromium_org/third_party/WebKit/Source/wtf/text/
DCString.h43 friend class CString;
59 class WTF_EXPORT CString {
61 CString() { } in CString() function
62 CString(const char*);
63 CString(const char*, size_t length);
64 CString(CStringBuffer* buffer) : m_buffer(buffer) { } in CString() function
65 static CString newUninitialized(size_t length, char*& characterBuffer);
88 WTF_EXPORT bool operator==(const CString& a, const CString& b);
89 inline bool operator!=(const CString& a, const CString& b) { return !(a == b); }
90 WTF_EXPORT bool operator==(const CString& a, const char* b);
[all …]
DCStringTest.cpp35 CString string; in TEST()
40 CString stringFromCharPointer(static_cast<const char*>(0)); in TEST()
45 CString stringFromCharAndLength(static_cast<const char*>(0), 0); in TEST()
54 CString string(emptyString); in TEST()
59 CString stringWithLength(emptyString, 0); in TEST()
69 CString string(referenceString); in TEST()
74 CString stringWithLength(referenceString, 6); in TEST()
83 CString emptyString = CString::newUninitialized(0, buffer); in TEST()
89 CString uninitializedString = CString::newUninitialized(length, buffer); in TEST()
98 CString stringWithLength(referenceString, 3); in TEST()
[all …]
DCString.cpp53 CString::CString(const char* str) in CString() function in WTF::CString
61 CString::CString(const char* str, size_t length) in CString() function in WTF::CString
71 void CString::init(const char* str, size_t length) in init()
80 char* CString::mutableData() in mutableData()
88 CString CString::newUninitialized(size_t length, char*& characterBuffer) in newUninitialized()
90 CString result; in newUninitialized()
98 void CString::copyBufferIfNeeded() in copyBufferIfNeeded()
109 bool CString::isSafeToSendToAnotherThread() const in isSafeToSendToAnotherThread()
114 bool operator==(const CString& a, const CString& b) in operator ==()
123 bool operator==(const CString& a, const char* b) in operator ==()
DTextCodecUserDefined.cpp66 static CString encodeComplexUserDefined(const CharType* characters, size_t length, UnencodableHandl… in encodeComplexUserDefined()
89 return CString(bytes, resultLength); in encodeComplexUserDefined()
93 CString TextCodecUserDefined::encodeCommon(const CharType* characters, size_t length, UnencodableHa… in encodeCommon()
96 CString result = CString::newUninitialized(length, bytes); in encodeCommon()
113 CString TextCodecUserDefined::encode(const UChar* characters, size_t length, UnencodableHandling ha… in encode()
118 CString TextCodecUserDefined::encode(const LChar* characters, size_t length, UnencodableHandling ha… in encode()
DTextCodecUTF16.cpp135 CString TextCodecUTF16::encode(const UChar* characters, size_t length, UnencodableHandling) in encode()
146 CString result = CString::newUninitialized(length * 2, bytes); in encode()
167 CString TextCodecUTF16::encode(const LChar* characters, size_t length, UnencodableHandling) in encode()
173 CString result = CString::newUninitialized(length * 2, bytes); in encode()
DTextCodecLatin1.cpp216 static CString encodeComplexWindowsLatin1(const CharType* characters, size_t length, UnencodableHan… in encodeComplexWindowsLatin1()
245 return CString(bytes, resultLength); in encodeComplexWindowsLatin1()
249 CString TextCodecLatin1::encodeCommon(const CharType* characters, size_t length, UnencodableHandlin… in encodeCommon()
253 CString string = CString::newUninitialized(length, bytes); in encodeCommon()
271 CString TextCodecLatin1::encode(const UChar* characters, size_t length, UnencodableHandling handlin… in encode()
276 CString TextCodecLatin1::encode(const LChar* characters, size_t length, UnencodableHandling handlin… in encode()
DTextCodecICU.h52 virtual CString encode(const UChar*, size_t length, UnencodableHandling) override;
53 virtual CString encode(const LChar*, size_t length, UnencodableHandling) override;
56 CString encodeCommon(const CharType*, size_t length, UnencodableHandling);
57 CString encodeInternal(const TextCodecInput&, UnencodableHandling);
DTextCodecUserDefined.h40 virtual CString encode(const UChar*, size_t length, UnencodableHandling) override;
41 virtual CString encode(const LChar*, size_t length, UnencodableHandling) override;
44 CString encodeCommon(const CharType*, size_t length, UnencodableHandling);
DTextCodecLatin1.h40 virtual CString encode(const UChar*, size_t length, UnencodableHandling) override;
41 virtual CString encode(const LChar*, size_t length, UnencodableHandling) override;
44 CString encodeCommon(const CharType*, size_t length, UnencodableHandling);
DTextEncoding.cpp70 CString TextEncoding::encode(const String& string, UnencodableHandling handling) const in encode()
73 return CString(); in encode()
79 CString encodedString; in encode()
87 CString TextEncoding::normalizeAndEncode(const String& string, UnencodableHandling handling) const in normalizeAndEncode()
90 return CString(); in normalizeAndEncode()
DBase64.h49 WTF_EXPORT void base64Encode(const CString&, Vector<char>&, Base64EncodePolicy = Base64DoNotInsertL…
52 WTF_EXPORT String base64Encode(const CString&, Base64EncodePolicy = Base64DoNotInsertLFs);
64 inline void base64Encode(const CString& in, Vector<char>& out, Base64EncodePolicy policy) in base64Encode()
74 inline String base64Encode(const CString& in, Base64EncodePolicy policy) in base64Encode()
DTextCodecUTF8.h45 virtual CString encode(const UChar*, size_t length, UnencodableHandling) override;
46 virtual CString encode(const LChar*, size_t length, UnencodableHandling) override;
49 CString encodeCommon(const CharType* characters, size_t length);
/external/chromium_org/sandbox/win/tools/finder/
Dfinder.h66 DWORD ParseFileSystem(ATL::CString path);
72 DWORD ParseRegistry(HKEY key, ATL::CString print_name);
79 DWORD ParseKernelObjects(ATL::CString path);
83 DWORD TestFileAccess(ATL::CString path);
89 DWORD TestRegAccess(HKEY key, ATL::CString name, ATL::CString print_name);
94 DWORD TestKernelObjectAccess(ATL::CString path, ATL::CString type);
97 void Output(ATL::CString type, ATL::CString access, ATL::CString info) { in Output()
103 void Output(ATL::CString type, DWORD error, ATL::CString info) { in Output()
112 bool GetFunctionForType(ATL::CString type, NTGENERICOPEN * func_to_call);
Dfinder_kernel.cc77 DWORD Finder::ParseKernelObjects(ATL::CString path) { in ParseKernelObjects()
122 ATL::CString cur_path(object_directory_info->ObjectName.Buffer, in ParseKernelObjects()
125 ATL::CString cur_type(object_directory_info->ObjectTypeName.Buffer, in ParseKernelObjects()
128 ATL::CString new_path; in ParseKernelObjects()
147 DWORD Finder::TestKernelObjectAccess(ATL::CString path, ATL::CString type) { in TestKernelObjectAccess()
228 bool Finder::GetFunctionForType(ATL::CString type, in GetFunctionForType()
Dfinder_registry.cc9 DWORD Finder::ParseRegistry(HKEY key, ATL::CString print_name) { in ParseRegistry()
17 ATL::CString name_complete = print_name + buffer + L"\\"; in ParseRegistry()
44 DWORD Finder::TestRegAccess(HKEY key, ATL::CString name, in TestRegAccess()
45 ATL::CString print_name) { in TestRegAccess()
/external/chromium_org/third_party/WebKit/Source/platform/text/
DLineEnding.cpp43 virtual void copy(const CString&) = 0;
49 CStringBuffer(CString& buffer) in CStringBuffer()
58 m_buffer = CString::newUninitialized(size, ptr); in allocate()
62 virtual void copy(const CString& source) OVERRIDE in copy()
67 const CString& buffer() const { return m_buffer; } in buffer()
70 CString m_buffer;
88 virtual void copy(const CString& source) OVERRIDE in copy()
97 void internalNormalizeLineEndingsToCRLF(const CString& from, OutputBuffer& buffer) in internalNormalizeLineEndingsToCRLF()
154 void normalizeToCROrLF(const CString& from, Vector<char>& result, bool toCR);
157 void normalizeToCROrLF(const CString& from, Vector<char>& result, bool toCR) in normalizeToCROrLF()
[all …]
DLineEnding.h42 PLATFORM_EXPORT CString normalizeLineEndingsToCRLF(const CString& from);
45 PLATFORM_EXPORT void normalizeLineEndingsToCR(const CString& from, Vector<char>& result);
48 PLATFORM_EXPORT void normalizeLineEndingsToLF(const CString& from, Vector<char>& result);
52 PLATFORM_EXPORT void normalizeLineEndingsToNative(const CString& from, Vector<char>& result);
/external/chromium_org/third_party/WebKit/Source/platform/network/
DFormDataBuilder.h40 static void beginMultiPartHeader(Vector<char>&, const CString& boundary, const CString& name);
41 …static void addBoundaryToMultiPartHeader(Vector<char>&, const CString& boundary, bool isLastBounda…
43 static void addContentTypeToMultiPartHeader(Vector<char>&, const CString& mimeType);
47 …static void addKeyValuePairAsFormData(Vector<char>&, const CString& key, const CString& value, For…
48 static void encodeStringAsFormData(Vector<char>&, const CString&);
DFormDataBuilder.cpp47 static inline void append(Vector<char>& buffer, const CString& string) in append()
52 static void appendQuotedString(Vector<char>& buffer, const CString& string) in appendQuotedString()
144 …taBuilder::beginMultiPartHeader(Vector<char>& buffer, const CString& boundary, const CString& name) in beginMultiPartHeader()
155 void FormDataBuilder::addBoundaryToMultiPartHeader(Vector<char>& buffer, const CString& boundary, b… in addBoundaryToMultiPartHeader()
175 void FormDataBuilder::addContentTypeToMultiPartHeader(Vector<char>& buffer, const CString& mimeType) in addContentTypeToMultiPartHeader()
186 …Builder::addKeyValuePairAsFormData(Vector<char>& buffer, const CString& key, const CString& value,… in addKeyValuePairAsFormData()
203 void FormDataBuilder::encodeStringAsFormData(Vector<char>& buffer, const CString& string) in encodeStringAsFormData()
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
DWebSocketExtensionParserTest.cpp44 CString input("extension"); in TEST()
56 CString input("extension; foo=FOO; bar=BAR; baz"); in TEST()
72 CString input("extension; foo=FOO; bar=\"BA\\R\""); in TEST()
86 CString input("extension: foo=FOO"); in TEST()
96 CString input("extension; foo="); in TEST()
106 CString input("extension; foo=\"\""); in TEST()
116 CString input("exten\xe0sion"); in TEST()
126 CString input("exten\bsion"); in TEST()
136 CString input("exten\tsion"); in TEST()
146 CString input("extension; foo=\"FOO"); in TEST()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
DFontFaceCreationParams.h49 CString m_filename;
55 …: m_creationType(CreateFontByFamily), m_family(AtomicString()), m_filename(CString()), m_fontconfi… in FontFaceCreationParams()
60 …: m_creationType(CreateFontByFamily), m_family(family), m_filename(CString()), m_fontconfigInterfa… in FontFaceCreationParams()
71 FontFaceCreationParams(CString filename, int fontconfigInterfaceId, int ttcIndex = 0)
82 CString filename() const in filename()
/external/chromium_org/third_party/WebKit/Source/core/html/
DFormDataList.h40 Item(const WTF::CString& data) : m_data(data) { } in Item()
43 const WTF::CString& data() const { return m_data; } in data()
50 WTF::CString m_data;
65 void appendData(const String& key, const CString& value) in appendData()
95 void appendString(const CString&);
/external/chromium_org/third_party/WebKit/Source/platform/exported/
DWebCString.cpp67 WTF::CString::newUninitialized(length, newData).buffer(); in assign()
87 WebCString::WebCString(const WTF::CString& s) in WebCString()
92 WebCString& WebCString::operator=(const WTF::CString& s) in operator =()
98 WebCString::operator WTF::CString() const in operator WTF::CString()
/external/chromium_org/third_party/WebKit/public/platform/
DWebCString.h45 class CString; variable
95 BLINK_COMMON_EXPORT WebCString(const WTF::CString&);
96 BLINK_COMMON_EXPORT WebCString& operator=(const WTF::CString&);
97 BLINK_COMMON_EXPORT operator WTF::CString() const;

12345