2018-02-13 02:43:17 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2018-02-13 02:43:17 +00:00
|
|
|
*
|
|
|
|
* @flow
|
|
|
|
* @format
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2018-02-13 22:04:49 +00:00
|
|
|
const deepFreezeAndThrowOnMutationInDev = require('deepFreezeAndThrowOnMutationInDev');
|
|
|
|
|
2018-02-13 02:43:17 +00:00
|
|
|
/**
|
|
|
|
* A collection of Unicode sequences for various characters and emoji.
|
|
|
|
*
|
|
|
|
* - More explicit than using the sequences directly in code.
|
|
|
|
* - Source code should be limitted to ASCII.
|
|
|
|
* - Less chance of typos.
|
|
|
|
*/
|
2018-02-13 22:04:49 +00:00
|
|
|
const UTFSequence = deepFreezeAndThrowOnMutationInDev({
|
2018-02-14 06:16:39 +00:00
|
|
|
BULLET: '\u2022', // bullet: •
|
|
|
|
BULLET_SP: '\u00A0\u2022\u00A0', // •
|
2018-02-13 02:43:17 +00:00
|
|
|
MIDDOT: '\u00B7', // normal middle dot: ·
|
|
|
|
MIDDOT_SP: '\u00A0\u00B7\u00A0', // ·
|
|
|
|
MIDDOT_KATAKANA: '\u30FB', // katakana middle dot
|
|
|
|
MDASH: '\u2014', // em dash: —
|
|
|
|
MDASH_SP: '\u00A0\u2014\u00A0', // —
|
|
|
|
NDASH: '\u2013', // en dash: –
|
|
|
|
NDASH_SP: '\u00A0\u2013\u00A0', // –
|
|
|
|
NBSP: '\u00A0', // non-breaking space:
|
|
|
|
PIZZA: '\uD83C\uDF55',
|
2018-02-13 22:04:49 +00:00
|
|
|
});
|
2018-02-13 02:43:17 +00:00
|
|
|
|
|
|
|
module.exports = UTFSequence;
|