parameters: (s)
return_statement: return s.replace('\\', r'\\').replace('"', '\\"').replace('\n', '\\n')
docstring: Quote a given string for external output.
  
    Args:
      s: An input UTF-8 encoded string.
    Returns:
      A quoted version of the string, using the same rules as 'aapt dump'.
docstring_summary: Quote a given string for external output.
docstring_tokens: Quote a given string for external output .
function: def QuoteString(s):
    """Quote a given string for external output.
  
    Args:
      s: An input UTF-8 encoded string.
    Returns:
      A quoted version of the string, using the same rules as 'aapt dump'.
    """
    # NOTE: Using repr() would escape all non-ASCII bytes in the string, which
    # is undesirable.
    return s.replace('\\', r'\\').replace('"', '\\"').replace('\n', '\\n')
function_tokens: def QuoteString ( s ) : # NOTE: Using repr() would escape all non-ASCII bytes in the string, which # is undesirable. return s . replace ( '\\' , r'\\' ) . replace ( '"' , '\\"' ) . replace ( '\n' , '\\n' )