/external/chromium_org/tools/grit/grit/extern/ |
tclib.py | 56 # The Placeholder class represents a placeholder in a message. 58 class Placeholder(object): 86 if type(other) is not Placeholder: 111 # placeholders = [Placeholder("NUM_BUGS", "%d", "33")], 123 # Append a placeholder to the message 124 def AppendPlaceholder(self, placeholder): 125 if not isinstance(placeholder, Placeholder): 126 raise MessageTranslationError, ("Invalid message placeholder %s in [all...] |
/external/chromium_org/tools/grit/grit/ |
tclib.py | 45 for placeholder in placeholders: 46 tag_map[placeholder.GetPresentation()] = [placeholder, 0] 61 tag_map[chunk][1] += 1 # increase placeholder use count 84 if isinstance(part, Placeholder): 90 def AppendPlaceholder(self, placeholder): 91 assert isinstance(placeholder, Placeholder) 94 if other.presentation == placeholder.presentation: 95 assert other.original == placeholder.origina [all...] |
pseudo_unittest.py | 43 tclib.Placeholder('USERNAME', '%s', 'Joi')])
|
pseudo_rtl.py | 98 if isinstance(part, tclib.Placeholder):
|
clique_unittest.py | 29 tclib.Placeholder('USERNAME', '%s', 'Joi')]) 37 tclib.Placeholder('USERNAME', '%s', 'Joi')]) 40 tclib.Placeholder('USERNAME', '%s', 'Joi')]) 132 placeholders=[tclib.Placeholder('USERNAME', '$1', 'Joi')]), 134 placeholders=[tclib.Placeholder('USERNAME', '%s', 'Joi')]), 141 placeholders=[tclib.Placeholder(
|
exception.py | 117 '''Placeholder name can only contain A-Z, a-z, 0-9 and underscore.'''
|
clique.py | 30 # same translateable portion and placeholder names, but occur in different 215 # We fetch placeholder information from the original message (the XTB file 216 # only contains placeholder names). 227 translation.AppendPlaceholder(tclib.Placeholder(
|
tclib_unittest.py | 39 phs = [tclib.Placeholder(u'USERNAME', u'%s', 'Joi')] 61 tclib.Placeholder('BLA1', '%s', '%s'), 62 tclib.Placeholder('BLA2', '%s', '%s'), 63 tclib.Placeholder('BLA3', '%s', '%s')]) 162 ph = tclib.Placeholder('BINGO BONGO', 'bla', 'bla') 170 phs = [tclib.Placeholder(word[:i], str(i), str(i)) for i in range(1, 11)]
|
/external/chromium_org/tools/grit/grit/tool/ |
transl2tc.py | 31 information from your .grd file to correct placeholder names in the 175 if isinstance(transl_content[ix], tclib.Placeholder): 176 if not isinstance(current_content[ix], tclib.Placeholder): 183 else: # translated part is not a placeholder but a string 184 if isinstance(current_content[ix], tclib.Placeholder): 193 if (isinstance(content[ix], tclib.Placeholder) and 195 assert isinstance(current_content[ix], tclib.Placeholder) 196 # Get the placeholder ID and example from the current message
|
xmb.py | 62 type(message.parts[0] == tclib.Placeholder))) 78 if isinstance(part, tclib.Placeholder):
|
rc2grd.py | 383 return msg # Contained at least one placeholder, so we're done 389 todo_counter = 1 # We make placeholder IDs 'TODO_0001' etc. 392 msg.AppendPlaceholder(tclib.Placeholder( 402 # replace wholesale to get placeholder names and examples
|
/external/chromium_org/tools/grit/grit/node/ |
message_unittest.py | 50 placeholders=[tclib.Placeholder('USERNAME', '%s', 'Joi'), 51 tclib.Placeholder('BINGO', '%d', '11')])
|
base_unittest.py | 139 tclib.Placeholder('BEGIN_BOLD', '<b>', 'bla'), 140 tclib.Placeholder('WHITESPACE', ' ', 'bla'), 141 tclib.Placeholder('END_BOLD', '</b>', 'bla')]),
|
message.py | 123 # Make the text (including placeholder references) and list of placeholders, 139 placeholders.append(tclib.Placeholder(presentation, original, ex)) 283 # We only allow a single example for each placeholder
|
/external/chromium_org/url/ |
url_canon.h | 657 sources_.username = Placeholder(); 668 sources_.password = Placeholder(); 679 sources_.host = Placeholder(); 690 sources_.port = Placeholder(); 701 sources_.path = Placeholder(); 712 sources_.query = Placeholder(); 723 sources_.ref = Placeholder(); 734 // Returns a pointer to a static empty string that is used as a placeholder 736 const CHAR* Placeholder() { [all...] |
/external/chromium_org/tools/grit/grit/gather/ |
policy_json.py | 28 def _ParsePlaceholder(self, placeholder, msg): 29 '''Extracts a placeholder from a DOM node and adds it to a tclib Message. 32 placeholder: A DOM node of the form: 33 <ph name="PLACEHOLDER_NAME">Placeholder text<ex>Example value</ex></ph> 34 msg: The placeholder is added to this message. 38 for node1 in placeholder.childNodes: 46 raise Exception('Unexpected element inside a placeholder: ' + 51 msg.AppendPlaceholder(tclib.Placeholder( 52 placeholder.attributes['name'].value,
|
igoogle_strings.py | 19 # placeholder between [![ and ]!] e.g. <MSG>Hello [![USER]!] how are you<MSG> 94 msg.AppendPlaceholder(tclib.Placeholder(part, '[![%s]!]' % part, 95 '(placeholder)'))
|
muppet_strings.py | 20 # placeholder between [![ and ]!] e.g. <MSG>Hello [![USER]!] how are you<MSG> 100 msg.AppendPlaceholder(tclib.Placeholder(part, '[![%s]!]' % part, 101 '(placeholder)'))
|
skeleton_gatherer.py | 39 # Number to use for the next placeholder name. Used only if single_message 107 ph = tclib.Placeholder('XX%02dXX' % self.ph_counter_, chunk, chunk)
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
RuntimeDyldELF.cpp | 301 // Get the placeholder value from the generated object since 303 uint32_t *Placeholder = 307 int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress; 314 // Get the placeholder value from the generated object since 316 uint64_t *Placeholder = 320 *Target = *Placeholder + Value + Addend - FinalAddress; 331 // Get the placeholder value from the generated object since 333 uint32_t *Placeholder = 336 *Target = *Placeholder + Value + Addend; 340 // Get the placeholder value from the generated object sinc [all...] |
/external/clang/lib/Sema/ |
CodeCompleteConsumer.cpp | 169 CodeCompletionString::Chunk::CreatePlaceholder(const char *Placeholder) { 170 return Chunk(CK_Placeholder, Placeholder); 357 void CodeCompletionBuilder::AddPlaceholderChunk(const char *Placeholder) { 358 Chunks.push_back(Chunk::CreatePlaceholder(Placeholder));
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
ExtendedBitmapDrawable.java | 68 private Placeholder mPlaceholder; 92 // Placeholder and progress. 97 // Placeholder is not optional because backgroundColor is part of it. 98 Drawable placeholder = null; local 101 if (mOpts.placeholder != null) { 102 ConstantState constantState = mOpts.placeholder.getConstantState(); 104 placeholder = constantState.newDrawable(mResources); 106 Rect bounds = mOpts.placeholder.getBounds(); 109 } else if (placeholder.getIntrinsicWidth() != -1) { 110 placeholderWidth = placeholder.getIntrinsicWidth() 723 public Drawable placeholder; field in class:ExtendedBitmapDrawable.ExtendedOptions [all...] |
/external/clang/include/clang/Sema/ |
CodeCompleteConsumer.h | 337 /// \brief A string that acts as a placeholder for, e.g., a function 410 /// \brief Create a new placeholder chunk. 411 static Chunk CreatePlaceholder(const char *Placeholder); 607 /// \brief Add a new placeholder chunk. 608 void AddPlaceholderChunk(const char *Placeholder); [all...] |
/external/chromium_org/chrome/browser/ui/webui/app_list/ |
start_page_browsertest.js | 57 * Placeholder for mock speech recognizer.
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
accctrl.h | 393 ULONG Placeholder;
|