Commit d11a5d9d authored by Zhuoyu Qian's avatar Zhuoyu Qian Committed by Commit Bot

Rename Encoding namepsace to encoding

https://google.github.io/styleguide/cppguide.html#Namespace_Names
> Namespace names are all lower-case.

This CL has no behavior changes.

Bug: 889726
Change-Id: Ia60a35c3a34147d84d366fad26e6a75f4859b015
Reviewed-on: https://chromium-review.googlesource.com/c/1286099Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Zhuoyu Qian <zhuoyu.qian@samsung.com>
Cr-Commit-Position: refs/heads/master@{#600677}
parent 8da1c8f7
......@@ -6,7 +6,7 @@
namespace blink {
namespace Encoding {
namespace encoding {
bool IsASCIIWhiteSpace(UChar c) {
// From Encoding Standard:
......@@ -15,6 +15,6 @@ bool IsASCIIWhiteSpace(UChar c) {
return c == 0x09 || c == 0x0A || c == 0x0C || c == 0x0D || c == 0x20;
}
} // namespace Encoding
} // namespace encoding
} // namespace blink
......@@ -9,13 +9,13 @@
namespace blink {
namespace Encoding {
namespace encoding {
// The Encoding Standard has a definition of whitespace that differs from
// WTF::isWhiteSpace() (it excludes vertical tab).
bool IsASCIIWhiteSpace(UChar);
} // namespace Encoding
} // namespace encoding
} // namespace blink
......
......@@ -43,7 +43,7 @@ TextDecoder* TextDecoder::Create(const String& label,
const TextDecoderOptions& options,
ExceptionState& exception_state) {
WTF::TextEncoding encoding(
label.StripWhiteSpace(&Encoding::IsASCIIWhiteSpace));
label.StripWhiteSpace(&encoding::IsASCIIWhiteSpace));
// The replacement encoding is not valid, but the Encoding API also
// rejects aliases of the replacement encoding.
if (!encoding.IsValid() || !strcasecmp(encoding.GetName(), "replacement")) {
......
......@@ -147,7 +147,7 @@ TextDecoderStream* TextDecoderStream::Create(ScriptState* script_state,
const TextDecoderOptions& options,
ExceptionState& exception_state) {
WTF::TextEncoding encoding(
label.StripWhiteSpace(&Encoding::IsASCIIWhiteSpace));
label.StripWhiteSpace(&encoding::IsASCIIWhiteSpace));
// The replacement encoding is not valid, but the Encoding API also
// rejects aliases of the replacement encoding.
if (!encoding.IsValid() ||
......
......@@ -217,6 +217,7 @@ _CONFIG = [
# Nested namespaces under the blink namespace
'cssvalue::.+',
'encoding::.+',
'event_handling_util::.+',
'scheduler::.+',
'touch_action_util::.+',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment