| /external/python/cpython2/Lib/test/ |
| D | test_gettext.py | 4 import gettext 58 MOFILE = os.path.join(LOCALEDIR, 'gettext.mo') 76 gettext._translations.clear() 95 gettext.install('gettext', self.localedir) 134 gettext message catalog library.'''), 143 t = gettext.GNUTranslations(fp) 152 t.install(unicode=True, names=["gettext", "lgettext"]) 154 eq(__builtin__.gettext, t.ugettext) 156 del __builtin__.gettext 165 gettext.bindtextdomain('gettext', self.localedir) [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_gettext.py | 3 import gettext 111 MOFILE = os.path.join(LOCALEDIR, 'gettext.mo') 135 gettext._translations.clear() 150 gettext.install('gettext', self.localedir, names=['pgettext']) 196 gettext message catalog library.'''), 206 t = gettext.GNUTranslations(fp) 215 t.install(names=["gettext", "ngettext"]) 216 eq(_, t.gettext) 217 eq(builtins.gettext, t.gettext) 220 del builtins.gettext [all …]
|
| /external/elfutils/m4/ |
| D | ChangeLog | 40 * gettext.m4: Upgrade to gettext-0.18.2. 41 * iconv.m4: Upgrade to gettext-0.18.2. 42 * po.m4: Upgrade to gettext-0.18.2. 46 * gettext.m4: Upgrade to gettext-0.17. 47 * iconv.m4: Upgrade to gettext-0.17. 48 * po.m4: Upgrade to gettext-0.17. 65 * gettext.m4: Update from gettext 0.16.1. 89 2002-03-22 gettextize <bug-gnu-gettext@gnu.org> 91 * codeset.m4: Upgrade to gettext-0.11. 92 * gettext.m4: Upgrade to gettext-0.11. [all …]
|
| /external/python/cpython3/Doc/library/ |
| D | gettext.rst | 1 :mod:`gettext` --- Multilingual internationalization services 4 .. module:: gettext 10 **Source code:** :source:`Lib/gettext.py` 14 The :mod:`gettext` module provides internationalization (I18N) and localization 16 GNU :program:`gettext` message catalog API and a higher level, class-based API that may 25 GNU :program:`gettext` API 28 The :mod:`gettext` module defines the following API, which is very similar to 29 the GNU :program:`gettext` API. If you use this API you will affect the 40 :mod:`gettext` will look for binary :file:`.mo` files for the given domain using 56 .. index:: single: _ (underscore); gettext [all …]
|
| /external/clang/unittests/AST/ |
| D | CommentLexer.cpp | 138 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F() 158 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F() 181 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F() 183 ASSERT_EQ(StringRef("\\"), Toks[1].getText()); in TEST_F() 187 ASSERT_EQ(StringRef(" Bbb"), Toks[3].getText()); in TEST_F() 189 ASSERT_EQ(StringRef("\\"), Toks[4].getText()); in TEST_F() 191 ASSERT_EQ(StringRef(" "), Toks[5].getText()); in TEST_F() 195 ASSERT_EQ(StringRef(" Ccc?" "?/"), Toks[7].getText()); in TEST_F() 219 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F() 223 ASSERT_EQ(StringRef(" Bbb"), Toks[2].getText()); in TEST_F() [all …]
|
| /external/python/jinja/docs/ |
| D | extensions.rst | 30 The i18n extension can be used in combination with `gettext`_ or 32 marks a block as translatable and calls ``gettext``. 34 After enabling, an application has to provide ``gettext`` and 36 function is added as an alias to the ``gettext`` function. 47 ``translations`` object must implement ``gettext`` and ``ngettext``. 48 :class:`gettext.NullTranslations`, :class:`gettext.GNUTranslations`, 51 .. versionchanged:: 2.5 Added new-style gettext support. 55 Install no-op gettext functions. This is useful if you want to 59 .. versionchanged:: 2.5 Added new-style gettext support. 61 .. method:: jinja2.Environment.install_gettext_callables(gettext, ngettext, newstyle=False) [all …]
|
| /external/python/cpython2/Doc/library/ |
| D | gettext.rst | 1 :mod:`gettext` --- Multilingual internationalization services 4 .. module:: gettext 9 **Source code:** :source:`Lib/gettext.py` 13 The :mod:`gettext` module provides internationalization (I18N) and localization 15 GNU ``gettext`` message catalog API and a higher level, class-based API that may 24 GNU :program:`gettext` API 27 The :mod:`gettext` module defines the following API, which is very similar to 28 the GNU :program:`gettext` API. If you use this API you will affect the 39 :mod:`gettext` will look for binary :file:`.mo` files for the given domain using 51 :func:`gettext` family of functions. If *codeset* is omitted, then the current [all …]
|
| /external/pdfium/fpdfsdk/pwl/ |
| D | cpwl_edit_embeddertest.cpp | 102 EXPECT_TRUE(GetCPWLEdit()->GetText().IsEmpty()); in TEST_F() 107 EXPECT_STREQ(L"abc", GetCPWLEdit()->GetText().c_str()); in TEST_F() 166 EXPECT_TRUE(GetCPWLEdit()->GetText().IsEmpty()); in TEST_F() 178 GetCPWLEdit()->GetText().c_str()); in TEST_F() 190 GetCPWLEdit()->GetText().c_str()); in TEST_F() 202 GetCPWLEdit()->GetText().c_str()); in TEST_F() 211 GetCPWLEdit()->GetText().c_str()); in TEST_F() 217 EXPECT_STREQ(L"Hello", GetCPWLEdit()->GetText().c_str()); in TEST_F() 228 EXPECT_STREQ(L"HelloABCDEFGHIJ", GetCPWLEdit()->GetText().c_str()); in TEST_F() 241 EXPECT_STREQ(L"ABCDEHelloFGHIJ", GetCPWLEdit()->GetText().c_str()); in TEST_F() [all …]
|
| D | cpwl_combo_box_edit_embeddertest.cpp | 24 EXPECT_FALSE(GetCPWLComboBox()->GetText().IsEmpty()); in TEST_F() 25 EXPECT_STREQ(L"Banana", GetCPWLComboBox()->GetText().c_str()); in TEST_F() 44 EXPECT_STREQ(L"Banana", GetCPWLComboBox()->GetText().c_str()); in TEST_F() 70 EXPECT_TRUE(GetCPWLComboBox()->GetText().IsEmpty()); in TEST_F() 136 EXPECT_TRUE(GetCPWLComboBox()->GetText().IsEmpty()); in TEST_F() 148 GetCPWLComboBox()->GetText().c_str()); in TEST_F() 160 GetCPWLComboBox()->GetText().c_str()); in TEST_F() 172 GetCPWLComboBox()->GetText().c_str()); in TEST_F() 181 GetCPWLComboBox()->GetText().c_str()); in TEST_F() 187 EXPECT_STREQ(L"Hello", GetCPWLComboBox()->GetText().c_str()); in TEST_F() [all …]
|
| /external/libconfig/contrib/ls-config/src/ |
| D | ls-config.c | 49 printf(gettext("Configuration file handling\n")); in printHelp() 51 printf(gettext("Usage: ls-config [OPTION]\n")); in printHelp() 52 printf(gettext("Reading and writening data from configuration files\n")); in printHelp() 53 printf(gettext("in libconfig9 format.\n")); in printHelp() 55 printf(gettext("CAUTION: using without given config file are cause error!\n")); in printHelp() 57 printf(gettext("Available options:\n")); in printHelp() 58 printf(gettext(" -f, --file=FILE Configuration file to handle.\n")); in printHelp() 60 printf(gettext(" -s, --set=PATH Set configuration variable of given path.\n")); in printHelp() 61 printf(gettext(" -d, --data=DATA Configuration variable value (only with -s)\n")); in printHelp() 62 printf(gettext(" -p, --type=TYPE Configuration value type\n")); in printHelp() [all …]
|
| /external/antlr/gunit/src/main/antlr3/org/antlr/gunit/ |
| D | gUnit.g | 190 STRING : '"' ( ESC | ~('\\'|'"') )* '"' {setText(getText().substring(1, getText().length()-1));} 209 int oldEndIndex = getText().length()-2; 212 front = getText().substring(2, 3); 213 end = getText().substring(getText().length()-3, getText().length()-2); 215 newEndIndex = getText().length()-3; 218 front = getText().substring(2, 4); 219 end = getText().substring(getText().length()-4, getText().length()-2); 221 newEndIndex = getText().length()-4; 227 if ( newline.length()==1 && getText().length()==5 ) temp = ""; 228 else if ( newline.length()==2 && getText().length()==6 ) temp = ""; [all …]
|
| /external/libexif/auto-m4/ |
| D | gettext.m4 | 1 # gettext.m4 serial 28 (gettext-0.13) 11 dnl License but which still want to provide support for the GNU gettext 13 dnl Please note that the actual code of the GNU gettext library is covered 15 dnl gettext package package is covered by the GNU General Public License. 22 dnl Macro to add for using GNU gettext. 34 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext 37 dnl 'need-formatstring-macros', then GNU gettext implementations that don't 43 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled 47 dnl 2) GNU gettext has been found in the system's C library. 55 dnl GNU format catalogs when building on a platform with an X/Open gettext), [all …]
|
| /external/clang/unittests/Tooling/ |
| D | FixItTest.cpp | 16 using tooling::fixit::getText; 35 TEST(FixItTest, getText) { in TEST() argument 39 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST() 40 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST() 44 EXPECT_EQ("x", getText(*P0, *Context)); in TEST() 45 EXPECT_EQ("y", getText(*P1, *Context)); in TEST() 50 EXPECT_EQ("APPLY(foo, x, y)", getText(*CE, *Context)); in TEST() 60 EXPECT_EQ("F OO", getText(*CE, *Context)); in TEST() 63 EXPECT_EQ("", getText(*P0, *Context)); in TEST() 64 EXPECT_EQ("", getText(*P1, *Context)); in TEST() [all …]
|
| /external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/ |
| D | SerializedStringWriteTest.java | 114 assertEquals(NAME_WITH_QUOTES, p.getText()); in _verifySimple() 116 assertEquals("a", p.getText()); in _verifySimple() 118 assertEquals(NAME_WITH_LATIN1, p.getText()); in _verifySimple() 120 assertEquals("b", p.getText()); in _verifySimple() 125 assertEquals(NAME_WITH_LATIN1, p.getText()); in _verifySimple() 127 assertEquals("c", p.getText()); in _verifySimple() 129 assertEquals(NAME_WITH_QUOTES, p.getText()); in _verifySimple() 131 assertEquals("d", p.getText()); in _verifySimple() 144 assertEquals(NAME_WITH_QUOTES, p.getText()); in _verifySimpleValues() 146 assertEquals(VALUE_WITH_QUOTES, p.getText()); in _verifySimpleValues() [all …]
|
| D | ObjectWriteTest.java | 92 assertEquals("first", jp.getText()); in testSimpleObjectWrite() 96 assertEquals("sec", jp.getText()); in testSimpleObjectWrite() 99 assertEquals("3rd!", jp.getText()); in testSimpleObjectWrite() 101 assertEquals("yee-haw", jp.getText()); in testSimpleObjectWrite() 145 assertEquals("null", jp.getText()); in testConvenienceMethods() 149 assertEquals("bt", jp.getText()); in testConvenienceMethods() 153 assertEquals("bf", jp.getText()); in testConvenienceMethods() 158 assertEquals("short", jp.getText()); in testConvenienceMethods() 163 assertEquals("int", jp.getText()); in testConvenienceMethods() 168 assertEquals("long", jp.getText()); in testConvenienceMethods() [all …]
|
| /external/pdfium/xfa/fde/ |
| D | cfde_texteditengine_unittest.cpp | 64 EXPECT_STREQ(L"", engine()->GetText().c_str()); in TEST_F() 67 EXPECT_STREQ(L"", engine()->GetText().c_str()); in TEST_F() 71 EXPECT_STREQ(L"Hello", engine()->GetText().c_str()); in TEST_F() 75 EXPECT_STREQ(L"Hello World", engine()->GetText().c_str()); in TEST_F() 79 EXPECT_STREQ(L"Hello New World", engine()->GetText().c_str()); in TEST_F() 82 EXPECT_STREQ(L"Hello New World Cat", engine()->GetText().c_str()); in TEST_F() 92 EXPECT_STREQ(L"Hello", engine()->GetText().c_str()); in TEST_F() 96 EXPECT_STREQ(L"Hello Wo", engine()->GetText().c_str()); in TEST_F() 110 EXPECT_STREQ(L"Hello", engine()->GetText().c_str()); in TEST_F() 116 EXPECT_STREQ(L"Hello Wo", engine()->GetText().c_str()); in TEST_F() [all …]
|
| /external/antlr/tool/src/test/java/org/antlr/test/ |
| D | TestCommonTokenStream.java | 56 String result = tokens.LT(1).getText(); in testFirstToken() 77 String result = tokens.LT(2).getText(); in test2ndToken() 161 assertEquals("x", t.getText()); in testLookback() 166 assertEquals("x", t.getText()); in testLookback() 168 assertEquals(" ", t.getText()); in testLookback() 170 assertEquals("=", t.getText()); in testLookback() 206 assertEquals("x", tokens.LT(1).getText()); // must skip first off channel token in testOffChannel() 208 assertEquals("=", tokens.LT(1).getText()); in testOffChannel() 209 assertEquals("x", tokens.LT(-1).getText()); in testOffChannel() 212 assertEquals("34", tokens.LT(1).getText()); in testOffChannel() [all …]
|
| /external/python/cpython3/Lib/ |
| D | gettext.py | 4 support for your Python programs by providing an interface to the GNU gettext 18 # gettext.py implementation. 24 # James Henstridge, who also wrote a gettext.py module, which has some 43 # you'll need to study the GNU gettext code to do this. 56 'textdomain', 'dgettext', 'dngettext', 'gettext', 65 # The gettext library supports a small subset of C syntax. The only 69 # https://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms 70 # http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/intl/plural.y 275 def gettext(self, message): member in NullTranslations 277 return self._fallback.gettext(message) [all …]
|
| /external/libchrome/third_party/jinja2/ |
| D | ext.py | 28 # the only real useful gettext functions for a Jinja template. Note 29 # that ugettext must be assigned to gettext as Jinja doesn't support 31 GETTEXT_FUNCTIONS = ('_', 'gettext', 'ngettext') 134 return __context.call(__context.resolve('gettext'), *args, **kwargs) 139 def gettext(__context, __string, **variables): function 144 return gettext 159 """This extension adds gettext support to Jinja2.""" 166 # something is called twice here. One time for the gettext value and 182 gettext = getattr(translations, 'ugettext', None) 183 if gettext is None: [all …]
|
| /external/python/jinja/src/jinja2/ |
| D | ext.py | 30 # provides ugettext, it will be assigned to gettext. 31 GETTEXT_FUNCTIONS = ("_", "gettext", "ngettext") 138 return __context.call(__context.resolve("gettext"), *args, **kwargs) 143 def gettext(__context, __string, **variables): function 152 return gettext 162 # Always treat as a format string, see gettext comment above. 169 """This extension adds gettext support to Jinja.""" 177 # something is called twice here. One time for the gettext value and 195 gettext = getattr(translations, "ugettext", None) 196 if gettext is None: [all …]
|
| /external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/ |
| D | TrailingCommasTest.java | 57 assertEquals("a", p.getText()); in testArrayBasic() 60 assertEquals("b", p.getText()); in testArrayBasic() 75 assertEquals("a", p.getText()); in testArrayInnerComma() 85 assertEquals("b", p.getText()); in testArrayInnerComma() 107 assertEquals("a", p.getText()); in testArrayLeadingComma() 110 assertEquals("b", p.getText()); in testArrayLeadingComma() 126 assertEquals("a", p.getText()); in testArrayTrailingComma() 129 assertEquals("b", p.getText()); in testArrayTrailingComma() 154 assertEquals("a", p.getText()); in testArrayTrailingCommas() 157 assertEquals("b", p.getText()); in testArrayTrailingCommas() [all …]
|
| /external/python/cpython2/Lib/ |
| D | gettext.py | 4 support for your Python programs by providing an interface to the GNU gettext 18 # gettext.py implementation. 24 # James Henstridge, who also wrote a gettext.py module, which has some 43 # you'll need to study the GNU gettext code to do this. 56 'dgettext', 'dngettext', 'gettext', 'lgettext', 'ldgettext', 64 # The gettext library supports a small subset of C syntax. The only 68 # https://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms 69 # http://git.savannah.gnu.org/cgit/gettext.git/tree/gettext-runtime/intl/plural.y 266 def gettext(self, message): member in NullTranslations 268 return self._fallback.gettext(message) [all …]
|
| /external/antlr/tool/src/main/java/org/antlr/tool/ |
| D | NameSpaceChecker.java | 125 String ruleName = tok.getText(); in lookForReferencesToUndefinedSymbols() 143 String tokenID = tok.getText(); in lookForReferencesToUndefinedSymbols() 156 Grammar scopeG = grammar.composite.getGrammar(scopeAST.getText()); in lookForReferencesToUndefinedSymbols() 158 String ruleName = refAST.getText(); in lookForReferencesToUndefinedSymbols() 163 scopeAST.getText(), in lookForReferencesToUndefinedSymbols() 172 scopeAST.getText(), in lookForReferencesToUndefinedSymbols() 216 if ( grammar.getGlobalScope(label.getText())!=null ) { in checkForLabelConflict() 219 else if ( grammar.getRule(label.getText())!=null ) { in checkForLabelConflict() 222 else if ( grammar.getTokenType(label.getText())!=Label.INVALID ) { in checkForLabelConflict() 225 else if ( r.ruleScope!=null && r.ruleScope.getAttribute(label.getText())!=null ) { in checkForLabelConflict() [all …]
|
| /external/libexif/ |
| D | ABOUT-NLS | 10 assume that the distributed package does use GNU `gettext' internally, 12 need to install GNU `gettext' prior to configuring, installing or using 22 `gettext' which is used. The information can be found in the 31 ./configure --with-included-gettext 36 the `gettext' implementation in the GNU C library version 2 provides as 40 of a `catgets' implementation. Future versions of GNU `gettext' will 42 to change to GNU `gettext' as soon as possible. 45 you have installed a recent copy of the GNU gettext package with the 53 packages use GNU `gettext'. Other packages have their own ways to 54 internationalization, predating GNU `gettext'. [all …]
|
| /external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
| D | TimestampTagTest.java | 29 getText("canonical: 2001-12-15T02:59:43.1Z", "canonical")); in testTimestamp() 32 getText("canonical: 2001-12-15T02:59:43.000Z", "canonical")); in testTimestamp() 34 getText("valid iso8601: 2001-12-14t21:59:43.10-05:00", "valid iso8601")); in testTimestamp() 37 getText("valid iso8601: 2001-12-14t21:59:43.10-0:30", "valid iso8601")); in testTimestamp() 40 getText("valid iso8601: 2001-12-14t21:59:43.10+2:00", "valid iso8601")); in testTimestamp() 42 getText("space separated: 2001-12-14 21:59:43.10 -5", "space separated")); in testTimestamp() 44 getText("no time zone (Z): 2001-12-15 2:59:43.10", "no time zone (Z)")); in testTimestamp() 46 getText("date (00:00:00Z): 2002-12-14", "date (00:00:00Z)")); in testTimestamp() 48 getText("milliseconds: 2010-05-16 03:06:11.003", "milliseconds")); in testTimestamp() 50 getText("milliseconds: 2010-05-16 03:06:11.0068", "milliseconds")); in testTimestamp() [all …]
|