16d528ed9Sopenharmony_ci// Copyright 2013 The Chromium Authors. All rights reserved.
26d528ed9Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
36d528ed9Sopenharmony_ci// found in the LICENSE file.
46d528ed9Sopenharmony_ci
56d528ed9Sopenharmony_ci#include "base/strings/string_util.h"
66d528ed9Sopenharmony_ci
76d528ed9Sopenharmony_cinamespace base {
86d528ed9Sopenharmony_ci
96d528ed9Sopenharmony_ci#define WHITESPACE_UNICODE                    \
106d528ed9Sopenharmony_ci  0x0009,     /* CHARACTER TABULATION */      \
116d528ed9Sopenharmony_ci      0x000A, /* LINE FEED (LF) */            \
126d528ed9Sopenharmony_ci      0x000B, /* LINE TABULATION */           \
136d528ed9Sopenharmony_ci      0x000C, /* FORM FEED (FF) */            \
146d528ed9Sopenharmony_ci      0x000D, /* CARRIAGE RETURN (CR) */      \
156d528ed9Sopenharmony_ci      0x0020, /* SPACE */                     \
166d528ed9Sopenharmony_ci      0x0085, /* NEXT LINE (NEL) */           \
176d528ed9Sopenharmony_ci      0x00A0, /* NO-BREAK SPACE */            \
186d528ed9Sopenharmony_ci      0x1680, /* OGHAM SPACE MARK */          \
196d528ed9Sopenharmony_ci      0x2000, /* EN QUAD */                   \
206d528ed9Sopenharmony_ci      0x2001, /* EM QUAD */                   \
216d528ed9Sopenharmony_ci      0x2002, /* EN SPACE */                  \
226d528ed9Sopenharmony_ci      0x2003, /* EM SPACE */                  \
236d528ed9Sopenharmony_ci      0x2004, /* THREE-PER-EM SPACE */        \
246d528ed9Sopenharmony_ci      0x2005, /* FOUR-PER-EM SPACE */         \
256d528ed9Sopenharmony_ci      0x2006, /* SIX-PER-EM SPACE */          \
266d528ed9Sopenharmony_ci      0x2007, /* FIGURE SPACE */              \
276d528ed9Sopenharmony_ci      0x2008, /* PUNCTUATION SPACE */         \
286d528ed9Sopenharmony_ci      0x2009, /* THIN SPACE */                \
296d528ed9Sopenharmony_ci      0x200A, /* HAIR SPACE */                \
306d528ed9Sopenharmony_ci      0x2028, /* LINE SEPARATOR */            \
316d528ed9Sopenharmony_ci      0x2029, /* PARAGRAPH SEPARATOR */       \
326d528ed9Sopenharmony_ci      0x202F, /* NARROW NO-BREAK SPACE */     \
336d528ed9Sopenharmony_ci      0x205F, /* MEDIUM MATHEMATICAL SPACE */ \
346d528ed9Sopenharmony_ci      0x3000, /* IDEOGRAPHIC SPACE */         \
356d528ed9Sopenharmony_ci      0
366d528ed9Sopenharmony_ci
376d528ed9Sopenharmony_ciconst char16_t kWhitespaceUTF16[] = {WHITESPACE_UNICODE};
386d528ed9Sopenharmony_ci
396d528ed9Sopenharmony_ciconst char kWhitespaceASCII[] = {0x09,  // CHARACTER TABULATION
406d528ed9Sopenharmony_ci                                 0x0A,  // LINE FEED (LF)
416d528ed9Sopenharmony_ci                                 0x0B,  // LINE TABULATION
426d528ed9Sopenharmony_ci                                 0x0C,  // FORM FEED (FF)
436d528ed9Sopenharmony_ci                                 0x0D,  // CARRIAGE RETURN (CR)
446d528ed9Sopenharmony_ci                                 0x20,  // SPACE
456d528ed9Sopenharmony_ci                                 0};
466d528ed9Sopenharmony_ci
476d528ed9Sopenharmony_ciconst char16_t kWhitespaceASCIIAs16[] = {0x09,  // CHARACTER TABULATION
486d528ed9Sopenharmony_ci                                         0x0A,  // LINE FEED (LF)
496d528ed9Sopenharmony_ci                                         0x0B,  // LINE TABULATION
506d528ed9Sopenharmony_ci                                         0x0C,  // FORM FEED (FF)
516d528ed9Sopenharmony_ci                                         0x0D,  // CARRIAGE RETURN (CR)
526d528ed9Sopenharmony_ci                                         0x20,  // SPACE
536d528ed9Sopenharmony_ci                                         0};
546d528ed9Sopenharmony_ci
556d528ed9Sopenharmony_ciconst char kUtf8ByteOrderMark[] = "\xEF\xBB\xBF";
566d528ed9Sopenharmony_ci
576d528ed9Sopenharmony_ci}  // namespace base
58