HomeSort by relevance Sort by last modified time
    Searched refs:Placeholder (Results 1 - 25 of 32) sorted by null

1 2

  /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', '&nbsp;', '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/llvm/lib/ExecutionEngine/RuntimeDyld/
RuntimeDyldELF.cpp 231 // Get the placeholder value from the generated object since
233 uint32_t *Placeholder = reinterpret_cast<uint32_t*>(Section.ObjAddress
237 int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress;
253 // Get the placeholder value from the generated object since
255 uint32_t *Placeholder = reinterpret_cast<uint32_t*>(Section.ObjAddress
258 *Target = *Placeholder + Value + Addend;
262 // Get the placeholder value from the generated object since
264 uint32_t *Placeholder = reinterpret_cast<uint32_t*>(Section.ObjAddress
268 uint32_t RealOffset = *Placeholder + Value + Addend - FinalAddress;
387 uint32_t *Placeholder = reinterpret_cast<uint32_t*>(Section.ObjAddress
    [all...]
  /external/chromium/googleurl/src/
url_canon.h 654 sources_.username = Placeholder();
665 sources_.password = Placeholder();
676 sources_.host = Placeholder();
687 sources_.port = Placeholder();
698 sources_.path = Placeholder();
709 sources_.query = Placeholder();
720 sources_.ref = Placeholder();
731 // Returns a pointer to a static empty string that is used as a placeholder
733 const CHAR* Placeholder() {
    [all...]
  /external/chromium_org/url/
url_canon.h 659 sources_.username = Placeholder();
670 sources_.password = Placeholder();
681 sources_.host = Placeholder();
692 sources_.port = Placeholder();
703 sources_.path = Placeholder();
714 sources_.query = Placeholder();
725 sources_.ref = Placeholder();
736 // Returns a pointer to a static empty string that is used as a placeholder
738 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/chromium_org/remoting/tools/
json_to_grd.py 41 placeholders.append(tclib.Placeholder(caps_name, index, p['example']))
51 # load list of string IDs and placeholder names from the untranslated file
52 # because order of messages and placeholder names are not persisted in
74 if isinstance(part, tclib.Placeholder):
133 if isinstance(part, tclib.Placeholder):
  /external/clang/lib/Sema/
CodeCompleteConsumer.cpp 170 CodeCompletionString::Chunk::CreatePlaceholder(const char *Placeholder) {
171 return Chunk(CK_Placeholder, Placeholder);
358 void CodeCompletionBuilder::AddPlaceholderChunk(const char *Placeholder) {
359 Chunks.push_back(Chunk::CreatePlaceholder(Placeholder));
  /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
AttachmentDrawable.java 58 // each attachment gets its own placeholder and progress indicator, to be shown, hidden,
61 private Placeholder mPlaceholder;
90 final ConversationItemViewCoordinates coordinates, final Drawable placeholder,
102 mPlaceholder = new Placeholder(placeholder.getConstantState().newDrawable(res), res,
421 LogUtils.v(LOG_TAG, "OUT stateful AD.setState. new=%s placeholder=%s progress=%s",
440 private static class Placeholder extends TileDrawable {
446 public Placeholder(Drawable placeholder, Resources res,
449 super(placeholder, coordinates.placeholderWidth, coordinates.placeholderHeight
    [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...]

Completed in 849 milliseconds

1 2