| /external/python/cpython3/Lib/test/ |
| D | test_gettext.py | 3 import gettext 12 # - Add new tests, for example for "dgettext" 13 # - Remove dummy tests, for example testing for single and double quotes 15 # - Tests should have only one assert. 112 MOFILE = os.path.join(LOCALEDIR, 'gettext.mo') 120 gettext._localedirs.clear() 121 gettext._current_domain = 'messages' 122 gettext._translations.clear() 161 gettext.install('gettext', self.localedir, names=['pgettext']) 168 eq(_(r'Raymond Luxury Yach-t'), 'Throatwobbler Mangrove') [all …]
|
| /external/elfutils/m4/ |
| D | ChangeLog | 1 2022-03-20 Mark Wielaard <mark@klomp.org> 3 * biarch.m4: Don't check whether -m64 works for 32bit host. 5 2022-03-14 Mark Wielaard <mark@klomp.org> 10 2020-12-15 Dmitry V. Levin <ldv@altlinux.org> 16 2019-10-28 Aaron Merey <amerey@redhat.com> 20 2015-05-01 Mark Wielaard <mjw@redhat.com> 24 2014-07-14 Mark Wielaard <mjw@redhat.com> 26 * biarch.m4 (utrace_BIARCH): Set biarch-no for cross-compile using 29 2013-12-02 Jan Kratochvil <jan.kratochvil@redhat.com> 33 2013-11-07 Roland McGrath <roland@redhat.com> [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` 12 -------------- 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 26 -------------------------- 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 [all …]
|
| /external/python/jinja/docs/ |
| D | extensions.rst | 1 .. _jinja-extensions: 12 ----------------- 23 .. _i18n-extension: 26 -------------- 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`, [all …]
|
| /external/clang/unittests/AST/ |
| D | CommentLexer.cpp | 1 //===- unittests/AST/CommentLexer.cpp ------ Comment lexer tests ----------===// 8 //===----------------------------------------------------------------------===// 49 return Traits.getCommandInfo(Tok.getCommandID())->Name; in getCommandName() 53 return Traits.getCommandInfo(Tok.getVerbatimBlockID())->Name; in getVerbatimBlockName() 57 return Traits.getCommandInfo(Tok.getVerbatimLineID())->Name; in getVerbatimLineName() 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() [all …]
|
| /external/pdfium/fpdfsdk/pwl/ |
| D | cpwl_edit_embeddertest.cpp | 2 // Use of this source code is governed by a BSD-style license that can be 34 CPDFSDK_AnnotIterator iter(m_pFormFillEnv->GetPageViewAtIndex(0), in CreateAndInitializeFormPDF() 43 // Read-only text field. in CreateAndInitializeFormPDF() 46 // Pre-filled text field with char limit of 10. in CreateAndInitializeFormPDF() 59 if (CPDF_Annot::Subtype::WIDGET != password_annot->GetAnnotSubtype()) { in CreateAndInitializeFormPDF() 74 m_pFormFillEnv->GetInteractiveFormFiller(); in FormFillerAndWindowSetup() 77 EXPECT_TRUE(pInteractiveFormFiller->OnSetFocus(pObserved, {})); in FormFillerAndWindowSetup() 81 pInteractiveFormFiller->GetFormFieldForTesting(pAnnotTextField); in FormFillerAndWindowSetup() 85 m_pFormFiller->GetPWLWindow(m_pFormFillEnv->GetPageViewAtIndex(0)); in FormFillerAndWindowSetup() 93 EXPECT_TRUE(GetCFFLFormFiller()->OnChar(GetCPDFSDKAnnot(), i + 'A', {})); in TypeTextIntoTextField() [all …]
|
| D | cpwl_combo_box_edit_embeddertest.cpp | 2 // Use of this source code is governed by a BSD-style license that can be 26 // Automatically pre-filled with "Banana". in TEST_F() 27 EXPECT_FALSE(GetCPWLComboBox()->GetText().IsEmpty()); in TEST_F() 28 EXPECT_EQ(L"Banana", GetCPWLComboBox()->GetText()); in TEST_F() 31 EXPECT_TRUE(GetCPWLComboBox()->GetSelectedText().IsEmpty()); in TEST_F() 32 GetCPWLComboBox()->SetSelectText(); in TEST_F() 33 EXPECT_EQ(L"Banana", GetCPWLComboBox()->GetSelectedText()); in TEST_F() 36 GetCPWLComboBox()->SetSelect(0); in TEST_F() 37 EXPECT_EQ(L"Apple", GetCPWLComboBox()->GetSelectedText()); in TEST_F() 38 GetCPWLComboBox()->SetSelect(2); in TEST_F() [all …]
|
| /external/libconfig/contrib/ls-config/src/ |
| D | ls-config.c | 29 int mode; //1 - for setting variable, 0 - for get hist data 42 if(val < 0) val *= -1; in getNumber() 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() [all …]
|
| /external/antlr/gunit/src/main/antlr3/org/antlr/gunit/ |
| D | gUnit.g | 3 Copyright (c) 2007-2008 Leon Jen-Yuan Su 86 if ( (pos1=$ACTION.text.indexOf("package"))!=-1 && (pos2=$ACTION.text.indexOf(';'))!=-1 ) { 128 int line = -1; 156 | '->' output {if ( !$testsuite::isLexicalRule ) $out = new OutputTest($output.token);} 190 STRING : '"' ( ESC | ~('\\'|'"') )* '"' {setText(getText().substring(1, getText().length()-1));} 194 : {// we need to determine the number of spaces or tabs (indentation) for multi-line input 196 int i = -1; 197 int c = input.LA(-1); 200 c = input.LA(--i); 209 int oldEndIndex = getText().length()-2; [all …]
|
| /external/libexif/auto-m4/ |
| D | gettext.m4 | 1 # gettext.m4 serial 28 (gettext-0.13) 2 dnl Copyright (C) 1995-2003 Free Software Foundation, Inc. 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. 19 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. 20 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. 22 dnl Macro to add for using GNU gettext. 25 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The 26 dnl default (if it is not specified or empty) is 'no-libtool'. [all …]
|
| /external/clang/unittests/Tooling/ |
| D | FixItTest.cpp | 1 //===- unittest/Tooling/FixitTest.cpp ------------------------------------===// 8 //===----------------------------------------------------------------------===// 16 using tooling::fixit::getText; 32 return Loc.printToString(Context->getSourceManager()); in LocationToString() 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() 42 Expr *P0 = CE->getArg(0); in TEST() 43 Expr *P1 = CE->getArg(1); in TEST() 44 EXPECT_EQ("x", getText(*P0, *Context)); in TEST() [all …]
|
| /external/pdfium/xfa/fde/ |
| D | cfde_texteditengine_unittest.cpp | 2 // Use of this source code is governed by a BSD-style license that can be 49 engine_->SetFont(font_); in SetUp() 50 engine_->SetFontSize(12.0f); in SetUp() 66 EXPECT_EQ(L"", engine()->GetText()); in TEST_F() 68 engine()->Insert(0, L""); in TEST_F() 69 EXPECT_EQ(L"", engine()->GetText()); in TEST_F() 70 EXPECT_EQ(0U, engine()->GetLength()); in TEST_F() 72 engine()->Insert(0, L"Hello"); in TEST_F() 73 EXPECT_EQ(L"Hello", engine()->GetText()); in TEST_F() 74 EXPECT_EQ(5U, engine()->GetLength()); in TEST_F() [all …]
|
| /external/jackson-core/src/test/java/com/fasterxml/jackson/core/write/ |
| D | SerializedStringWriteTest.java | 25 // First using char-backed generator in testSimpleFieldNames() 33 // then using UTF-8 in testSimpleFieldNames() 44 // First using char-backed generator in testSimpleValues() 51 // then using UTF-8 in testSimpleValues() 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() [all …]
|
| D | ObjectWriteTest.java | 81 gen.writeNumber(-901); in testSimpleObjectWrite() 85 gen.writeString("yee-haw"); in testSimpleObjectWrite() 92 assertEquals("first", jp.getText()); in testSimpleObjectWrite() 94 assertEquals(-901, jp.getIntValue()); in testSimpleObjectWrite() 96 assertEquals("sec", jp.getText()); in testSimpleObjectWrite() 99 assertEquals("3rd!", jp.getText()); in testSimpleObjectWrite() 101 assertEquals("yee-haw", jp.getText()); in testSimpleObjectWrite() 108 * Methods to test functionality added for [JACKSON-26] 122 gen.writeNumberField("short", (short) -12345); in testConvenienceMethods() 124 gen.writeNumberField("long", Integer.MIN_VALUE - 1707L); in testConvenienceMethods() [all …]
|
| /external/antlr/tool/src/test/java/org/antlr/test/ |
| D | TestCommonTokenStream.java | 38 /** This actually tests new (12/4/09) buffered but on-demand fetching stream */ 56 String result = tokens.LT(1).getText(); in testFirstToken() 77 String result = tokens.LT(2).getText(); in test2ndToken() 160 Token t = tokens.LT(-1); in testLookback() 161 assertEquals("x", t.getText()); in testLookback() 165 t = tokens.LT(-3); in testLookback() 166 assertEquals("x", t.getText()); in testLookback() 167 t = tokens.LT(-2); in testLookback() 168 assertEquals(" ", t.getText()); in testLookback() 169 t = tokens.LT(-1); in testLookback() [all …]
|
| /external/python/cpython3/Lib/ |
| D | gettext.py | 4 support for your Python programs by providing an interface to the GNU gettext 17 # C-based libintlmodule (later renamed _gettext), along with a skeletal 18 # gettext.py implementation. 21 # which also included a pure-Python implementation to read .mo files if 24 # James Henstridge, who also wrote a gettext.py module, which has some 32 # Francois Pinard and Marc-Andre Lemburg also contributed valuably to this 38 # - Lazy loading of .mo files. Currently the entire catalog is loaded into 42 # the undocumented double-hash algorithm for .mo files with hash tables, but 43 # you'll need to study the GNU gettext code to do this. 45 # - Support Solaris .mo file formats. Unfortunately, we've been unable to [all …]
|
| /external/libchrome/third_party/jinja2/ |
| D | ext.py | 1 # -*- coding: utf-8 -*- 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 167 # the other time for the n-parameter of the ngettext function. [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 178 # the other time for the n-parameter of the ngettext function. 195 gettext = getattr(translations, "ugettext", None) [all …]
|
| /external/libexif/ |
| D | ABOUT-NLS | 9 If you found this `ABOUT-NLS' file inside a distribution, you may 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 [all …]
|
| /external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
| D | TimestampTagTest.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 28 assertEquals("2001-12-15 at 2:59:43 (100)", in testTimestamp() 29 getText("canonical: 2001-12-15T02:59:43.1Z", "canonical")); in testTimestamp() 31 assertEquals("2001-12-15 at 2:59:43 (0)", in testTimestamp() 32 getText("canonical: 2001-12-15T02:59:43.000Z", "canonical")); in testTimestamp() 33 assertEquals("2001-12-15 at 2:59:43 (100)", in testTimestamp() 34 getText("valid iso8601: 2001-12-14t21:59:43.10-05:00", "valid iso8601")); in testTimestamp() 36 assertEquals("2001-12-14 at 22:29:43 (100)", in testTimestamp() 37 getText("valid iso8601: 2001-12-14t21:59:43.10-0:30", "valid iso8601")); in testTimestamp() 39 assertEquals("2001-12-14 at 19:59:43 (100)", in testTimestamp() [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() 186 /** Check for collision of a rule-scope dynamic attribute with: 210 * return values, parameters, and rule-scope dynamic attributes 216 if ( grammar.getGlobalScope(label.getText())!=null ) { in checkForLabelConflict() 219 else if ( grammar.getRule(label.getText())!=null ) { in checkForLabelConflict() [all …]
|
| /external/google-java-format/idea_plugin/src/test/java/com/google/googlejavaformat/intellij/ |
| D | GoogleJavaFormatFormattingServiceTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 85 String origText = file.getText(); in defaultFormatSettings() 88 file.getProject(), () -> manager.reformatText(file, 0, file.getTextLength())); in defaultFormatSettings() 90 assertThat(file.getText()).isEqualTo(new Formatter().formatSource(origText)); in defaultFormatSettings() 104 String origText = file.getText(); in aospStyle() 107 file.getProject(), () -> manager.reformatText(file, 0, file.getTextLength())); in aospStyle() 109 assertThat(file.getText()) in aospStyle() 127 var offset = file.getText().indexOf("final static"); in canChangeWhitespaceOnlyDoesNotReorderModifiers() 130 () -> in canChangeWhitespaceOnlyDoesNotReorderModifiers() 134 // In non-whitespace mode, this would flip the order of these modifiers. (Also check for leading in canChangeWhitespaceOnlyDoesNotReorderModifiers() [all …]
|
| /external/python/jinja/tests/ |
| D | test_ext.py | 67 def gettext(context, string): function 83 i18n_env.globals.update({"_": gettext, "gettext": gettext, "ngettext": ngettext}) 87 {"_": gettext, "gettext": gettext, "ngettext": ngettext} 93 newstyle_i18n_env.install_gettext_callables(gettext, ngettext, newstyle=True) 153 yield Token(lineno, "name", "gettext") 175 {%- for item in [1, 2, 3, 4] %} 176 {%- if item % 2 == 0 %}{% continue %}{% endif -%} 178 {%- endfor %}""" 184 {%- for item in [1, 2, 3, 4] %} 185 {%- if item > 2 %}{% break %}{% endif -%} [all …]
|
| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
| D | SubtitleViewUtils.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 63 if (cue.getText() instanceof Spanned) { in removeAllEmbeddedStyling() 64 if (!(cue.getText() instanceof Spannable)) { in removeAllEmbeddedStyling() 65 cue.setText(SpannableString.valueOf(cue.getText())); in removeAllEmbeddedStyling() 68 (Spannable) checkNotNull(cue.getText()), span -> !(span instanceof LanguageFeatureSpan)); in removeAllEmbeddedStyling() 86 if (cue.getText() instanceof Spanned) { in removeEmbeddedFontSizes() 87 if (!(cue.getText() instanceof Spannable)) { in removeEmbeddedFontSizes() 88 cue.setText(SpannableString.valueOf(cue.getText())); in removeEmbeddedFontSizes() 91 (Spannable) checkNotNull(cue.getText()), in removeEmbeddedFontSizes() 92 span -> span instanceof AbsoluteSizeSpan || span instanceof RelativeSizeSpan); in removeEmbeddedFontSizes()
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
| D | SubtitleViewUtils.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 63 if (cue.getText() instanceof Spanned) { in removeAllEmbeddedStyling() 64 if (!(cue.getText() instanceof Spannable)) { in removeAllEmbeddedStyling() 65 cue.setText(SpannableString.valueOf(cue.getText())); in removeAllEmbeddedStyling() 68 (Spannable) checkNotNull(cue.getText()), span -> !(span instanceof LanguageFeatureSpan)); in removeAllEmbeddedStyling() 86 if (cue.getText() instanceof Spanned) { in removeEmbeddedFontSizes() 87 if (!(cue.getText() instanceof Spannable)) { in removeEmbeddedFontSizes() 88 cue.setText(SpannableString.valueOf(cue.getText())); in removeEmbeddedFontSizes() 91 (Spannable) checkNotNull(cue.getText()), in removeEmbeddedFontSizes() 92 span -> span instanceof AbsoluteSizeSpan || span instanceof RelativeSizeSpan); in removeEmbeddedFontSizes()
|