Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/WebKit/Source/platform/wtf/text/StringImpl.h

Issue 2813533003: Add "Unicode" suffixes to some functions of WTF::String and WTF::StringImpl. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2009 Google Inc. All rights reserved. 5 * Copyright (C) 2009 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 int64_t ToInt64(bool* ok = 0); // ignores trailing garbage 371 int64_t ToInt64(bool* ok = 0); // ignores trailing garbage
372 uint64_t ToUInt64(bool* ok = 0); // ignores trailing garbage 372 uint64_t ToUInt64(bool* ok = 0); // ignores trailing garbage
373 373
374 // FIXME: Like the strict functions above, these give false for "ok" when 374 // FIXME: Like the strict functions above, these give false for "ok" when
375 // there is trailing garbage. Like the non-strict functions above, these 375 // there is trailing garbage. Like the non-strict functions above, these
376 // return the value when there is trailing garbage. It would be better if 376 // return the value when there is trailing garbage. It would be better if
377 // these were more consistent with the above functions instead. 377 // these were more consistent with the above functions instead.
378 double ToDouble(bool* ok = 0); 378 double ToDouble(bool* ok = 0);
379 float ToFloat(bool* ok = 0); 379 float ToFloat(bool* ok = 0);
380 380
381 PassRefPtr<StringImpl> Lower(); 381 PassRefPtr<StringImpl> LowerUnicode();
382 PassRefPtr<StringImpl> LowerASCII(); 382 PassRefPtr<StringImpl> LowerASCII();
383 PassRefPtr<StringImpl> Upper(); 383 PassRefPtr<StringImpl> UpperUnicode();
384 PassRefPtr<StringImpl> UpperASCII(); 384 PassRefPtr<StringImpl> UpperASCII();
385 PassRefPtr<StringImpl> Lower(const AtomicString& locale_identifier); 385 PassRefPtr<StringImpl> LowerUnicode(const AtomicString& locale_identifier);
386 PassRefPtr<StringImpl> Upper(const AtomicString& locale_identifier); 386 PassRefPtr<StringImpl> UpperUnicode(const AtomicString& locale_identifier);
387 387
388 PassRefPtr<StringImpl> Fill(UChar); 388 PassRefPtr<StringImpl> Fill(UChar);
389 // FIXME: Do we need fill(char) or can we just do the right thing if UChar is 389 // FIXME: Do we need fill(char) or can we just do the right thing if UChar is
390 // ASCII? 390 // ASCII?
391 PassRefPtr<StringImpl> FoldCase(); 391 PassRefPtr<StringImpl> FoldCase();
392 392
393 PassRefPtr<StringImpl> Truncate(unsigned length); 393 PassRefPtr<StringImpl> Truncate(unsigned length);
394 394
395 PassRefPtr<StringImpl> StripWhiteSpace(); 395 PassRefPtr<StringImpl> StripWhiteSpace();
396 PassRefPtr<StringImpl> StripWhiteSpace(IsWhiteSpaceFunctionPtr); 396 PassRefPtr<StringImpl> StripWhiteSpace(IsWhiteSpaceFunctionPtr);
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 using WTF::kTextCaseASCIIInsensitive; 888 using WTF::kTextCaseASCIIInsensitive;
889 using WTF::kTextCaseUnicodeInsensitive; 889 using WTF::kTextCaseUnicodeInsensitive;
890 using WTF::kTextCaseSensitive; 890 using WTF::kTextCaseSensitive;
891 using WTF::TextCaseSensitivity; 891 using WTF::TextCaseSensitivity;
892 using WTF::Equal; 892 using WTF::Equal;
893 using WTF::EqualNonNull; 893 using WTF::EqualNonNull;
894 using WTF::LengthOfNullTerminatedString; 894 using WTF::LengthOfNullTerminatedString;
895 using WTF::ReverseFind; 895 using WTF::ReverseFind;
896 896
897 #endif 897 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698