MCPcopy
hub / github.com/KhronosGroup/Vulkan-Docs / append

Method append

scripts/spec_tools/validity.py:178–189  ·  view source on GitHub ↗

Append a part of a string. If this is the first entry part and the part doesn't start with a markup macro, the first character will be capitalized.

(self, part)

Source from the content-addressed store, hash-verified

176 self.append(text)
177
178 def append(self, part):
179 """Append a part of a string.
180
181 If this is the first entry part and the part doesn't start
182 with a markup macro, the first character will be capitalized."""
183 if not self.parts and not _STARTS_WITH_MACRO_RE.match(part):
184 self.parts.append(part[:1].upper())
185 self.parts.append(part[1:])
186 else:
187 self.parts.append(part)
188 if self.verbose:
189 print('ValidityEntry', id(self), 'after append:', str(self))
190
191 def drop_end(self, n):
192 """Remove up to n trailing characters from the string."""

Callers 15

__init__Method · 0.95
__iadd__Method · 0.95
descendantsMethod · 0.80
genvk.pyFile · 0.80
deprecatedByMethod · 0.80
writeIncludeMethod · 0.80
genEnumTableMethod · 0.80
endFileMethod · 0.80
genSpirvMethod · 0.80
output_lineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected