tools/json_to_struct/element_generator.py
def _GenerateString16(content, lines, indent='  '):
  """Generates an UTF-16 string to be included in a static structure
  initializer. If content is not specified, uses NULL.
  """
  if content is None:
    lines.append(indent + 'NULL,')
  else:
    # json.dumps quotes the string and escape characters as required.
    lines.append(indent + 'L%s,' % _JSONToCString16(json.dumps(content)))
Generates an UTF-16 string to be included in a static structure
  initializer. If content is not specified, uses NULL.
  
Generates an UTF-16 string to be included in a static structure
initializer. If content is not specified, uses NULL.
Generates an UTF - 16 string to be included in a static structure initializer . If content is not specified uses NULL .
def _GenerateString16(content, lines, indent='  '):
  if content is None:
    lines.append(indent + 'NULL,')
  else:
    lines.append(indent + 'L%s,' % _JSONToCString16(json.dumps(content)))
def _GenerateString16 ( content , lines , indent = '  ' ) : if content is None : lines . append ( indent + 'NULL,' ) else : lines . append ( indent + 'L%s,' % _JSONToCString16 ( json . dumps ( content ) ) )
Generates an UTF-16 string to be included in a static structure
initializer.
Generates an UTF - 16 string to be included in a static structure initializer .
"""Generates an UTF-16 string to be included in a static structure
  initializer. If content is not specified, uses NULL.
  """ # json.dumps quotes the string and escape characters as required.
content
lines
indent