mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
![Dan Minor](/assets/img/avatar_default.png)
This adds an initial version of NumberFormat that is suitable for use by Fluent. The options formatting code is taken from SpiderMonkey and modified to use the standard c++ library rather than SpiderMonkey specific code. The code generated MeasureUnitGenerated.h is duplicated here temporarily. Once we can move SpiderMonkey to using this code, we can update the code generation to avoid this duplication. Some simple gtests have been written to make development easier. Full test coverage is not a goal here, as this code will eventually be covered by running test262 in SpiderMonkey. Differential Revision: https://phabricator.services.mozilla.com/D107223
59 lines
1.4 KiB
Python
59 lines
1.4 KiB
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
TEST_DIRS += [
|
|
"gtest",
|
|
]
|
|
|
|
DIRS += [
|
|
"components",
|
|
"hyphenation/glue",
|
|
"locale",
|
|
"locales",
|
|
"lwbrk",
|
|
"strres",
|
|
"unicharutil",
|
|
"l10n",
|
|
]
|
|
|
|
DIRS += [
|
|
"uconv",
|
|
"build",
|
|
]
|
|
|
|
EXPORTS.mozilla += [
|
|
"Encoding.h",
|
|
"EncodingDetector.h",
|
|
"JapaneseDetector.h",
|
|
]
|
|
|
|
EXPORTS += [
|
|
"../third_party/rust/chardetng_c/include/chardetng.h",
|
|
"../third_party/rust/encoding_c/include/encoding_rs.h",
|
|
"../third_party/rust/encoding_c/include/encoding_rs_statics.h",
|
|
"../third_party/rust/shift_or_euc_c/include/shift_or_euc.h",
|
|
]
|
|
|
|
with Files("**"):
|
|
BUG_COMPONENT = ("Core", "Internationalization")
|
|
|
|
with Files("icu/**"):
|
|
BUG_COMPONENT = ("Core", "JavaScript: Internationalization API")
|
|
|
|
with Files("icu-patches/**"):
|
|
BUG_COMPONENT = ("Core", "JavaScript: Internationalization API")
|
|
|
|
with Files("tzdata/**"):
|
|
BUG_COMPONENT = ("Core", "JavaScript: Internationalization API")
|
|
|
|
with Files("update*"):
|
|
BUG_COMPONENT = ("Core", "JavaScript: Internationalization API")
|
|
|
|
with Files("icu_sources_data.py"):
|
|
BUG_COMPONENT = ("Firefox Build System", "General")
|
|
|
|
SPHINX_TREES["/intl"] = "docs"
|