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

Issue 147038: Pass through non-character codepoints in UTF-8,16,32 and Wide conversion func... (Closed)

Created:
11 years, 6 months ago by jungshik at Google
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Pass through non-character codepoints in UTF-8,16,32 and Wide conversion functions. They're structurally valid code points unlike malformed byte/surrogate sequences. I believe it's better to leave them alone in conversion functions. This CL was triggered by file_util_unittest failure on Linux/Mac with my upcoming change to file_util::ReplaceIllegalCharacters (a part of http://codereview.chromium.org/126223 ). In addition, the upper bound for the output length in CodepageToWide was tightened. TEST=pass string_util and file_util unittests BUG=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=19132

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -16 lines) Patch
M base/file_util_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M base/string_util.h View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M base/string_util_icu.cc View 1 2 3 4 6 chunks +25 lines, -7 lines 0 comments Download
M base/string_util_unittest.cc View 1 5 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
jungshik at Google
11 years, 6 months ago (2009-06-23 20:13:18 UTC) #1
brettw
http://codereview.chromium.org/147038/diff/1005/1007 File base/string_util.h (right): http://codereview.chromium.org/147038/diff/1005/1007#newcode251 Line 251: #if 0 Why did you add these?
11 years, 6 months ago (2009-06-23 20:49:41 UTC) #2
jungshik at Google
On 2009/06/23 20:49:41, brettw wrote: > http://codereview.chromium.org/147038/diff/1005/1007 > File base/string_util.h (right): > > http://codereview.chromium.org/147038/diff/1005/1007#newcode251 > ...
11 years, 6 months ago (2009-06-23 21:51:00 UTC) #3
Avi (use Gerrit)
http://codereview.chromium.org/147038/diff/1012/24 File base/string_util.h (right): http://codereview.chromium.org/147038/diff/1012/24#newcode189 Line 189: // Note that only the structural validity is ...
11 years, 6 months ago (2009-06-23 22:09:47 UTC) #4
brettw
LGTM with these comment formatting and all the previous suggestions fixed. http://codereview.chromium.org/147038/diff/1005/1007 File base/string_util.h (right): ...
11 years, 6 months ago (2009-06-23 22:26:55 UTC) #5
jungshik at Google
11 years, 6 months ago (2009-06-23 23:02:43 UTC) #6
On 2009/06/23 22:26:55, brettw wrote:
> LGTM with these comment formatting and all the previous suggestions fixed.

Thank you for taking a look. All the suggestions were about comment formatting
changes (which I addressed in the patch set I've just updated). Is there
anything I missed?


> 
> http://codereview.chromium.org/147038/diff/1005/1007
> File base/string_util.h (right):
> 
> http://codereview.chromium.org/147038/diff/1005/1007#newcode189
> Line 189: // Note that only the structural validity is checked and 
> non-character
> Can you put an empty comment line here? I find this hard to follow without
some
> vertical space.
> 
> http://codereview.chromium.org/147038/diff/1005/1007#newcode279
> Line 279: // Note that IsStringUTF8 checks not only if the input is
structrually
> Can you also put a "//" line above this one?
> 
> http://codereview.chromium.org/147038/diff/1005/1008
> File base/string_util_icu.cc (right):
> 
> http://codereview.chromium.org/147038/diff/1005/1008#newcode446
> Line 446: // Moreover, non-BMP characters in legacy multibyte encodings
> Blank line here?

Powered by Google App Engine
This is Rietveld 408576698