security/sandbox/chromium/base/strings/string_util_constants.cc

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

michael@0 1 // Copyright 2013 The Chromium Authors. All rights reserved.
michael@0 2 // Use of this source code is governed by a BSD-style license that can be
michael@0 3 // found in the LICENSE file.
michael@0 4
michael@0 5 #include "base/strings/string_util.h"
michael@0 6
michael@0 7 #define WHITESPACE_UNICODE \
michael@0 8 0x0009, /* <control-0009> to <control-000D> */ \
michael@0 9 0x000A, \
michael@0 10 0x000B, \
michael@0 11 0x000C, \
michael@0 12 0x000D, \
michael@0 13 0x0020, /* Space */ \
michael@0 14 0x0085, /* <control-0085> */ \
michael@0 15 0x00A0, /* No-Break Space */ \
michael@0 16 0x1680, /* Ogham Space Mark */ \
michael@0 17 0x180E, /* Mongolian Vowel Separator */ \
michael@0 18 0x2000, /* En Quad to Hair Space */ \
michael@0 19 0x2001, \
michael@0 20 0x2002, \
michael@0 21 0x2003, \
michael@0 22 0x2004, \
michael@0 23 0x2005, \
michael@0 24 0x2006, \
michael@0 25 0x2007, \
michael@0 26 0x2008, \
michael@0 27 0x2009, \
michael@0 28 0x200A, \
michael@0 29 0x200C, /* Zero Width Non-Joiner */ \
michael@0 30 0x2028, /* Line Separator */ \
michael@0 31 0x2029, /* Paragraph Separator */ \
michael@0 32 0x202F, /* Narrow No-Break Space */ \
michael@0 33 0x205F, /* Medium Mathematical Space */ \
michael@0 34 0x3000, /* Ideographic Space */ \
michael@0 35 0
michael@0 36
michael@0 37 const wchar_t kWhitespaceWide[] = {
michael@0 38 WHITESPACE_UNICODE
michael@0 39 };
michael@0 40
michael@0 41 const char16 kWhitespaceUTF16[] = {
michael@0 42 WHITESPACE_UNICODE
michael@0 43 };
michael@0 44
michael@0 45 const char kWhitespaceASCII[] = {
michael@0 46 0x09, // <control-0009> to <control-000D>
michael@0 47 0x0A,
michael@0 48 0x0B,
michael@0 49 0x0C,
michael@0 50 0x0D,
michael@0 51 0x20, // Space
michael@0 52 0
michael@0 53 };
michael@0 54
michael@0 55 const char kUtf8ByteOrderMark[] = "\xEF\xBB\xBF";

mercurial