Lines Matching refs:string
39 raise GNException("Trying to print a string with a newline in it.")
61 raise GNException("Dictionary key is not a string.")
72 """Converts the input string from a GN serialized value to Python values.
93 If you just pass a string on the command line to your Python script, or use
94 string interpolation on a string variable, the strings will not be quoted:
99 The unquoted asdf string will not be valid input to this function, which
101 use the Python string literal directly.
104 using string interpolation on a list (as in the top example) the embedded
113 """Converts a string with a bunch of gn arg assignments into a Python dict.
117 <ident> = (integer | string | boolean | <list of the former>)
142 """Given a string with GN escaping, returns the unescaped string.
178 def __init__(self, string: str):
179 self.input = string
190 """Converts a string representing a printed GN value to the Python type.
199 strings with GN escaping rules. GN string interpolation (embedded
256 raise GNException('Expected string but got nothing.')
259 raise GNException('Expected string beginning in a " but got:\n ' +
273 raise GNException('Unterminated string:\n ' + self.input[begin:])