code: def _split_quoted(text):
      
      quoted = False
      escaped = False
      result = []
      for i, ch in enumerate(text):
          if escaped:
              escaped = False
              result.append(ch)
          elif ch == u'\\':
              escaped = True
          elif ch == u'"':
              quoted = not quoted
          elif not quoted and ch == u' ':
              return u"".join(result), text[i:].lstrip()
          else:
              result.append(ch)
      return u"".join(result), u""
docs: Split a unicode string on *SPACE* characters.
  
      Splitting is not done at *SPACE* characters occurring within matched
      *QUOTATION MARK*s.  *REVERSE SOLIDUS* can be used to remove all
      interpretation from the following character.
  
      :param unicode text: The string to split.
  
      :return: A two-tuple of unicode giving the two split pieces.