MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_quoted_string

Function get_quoted_string

Lib/email/_header_value_parser.py:1303–1319  ·  view source on GitHub ↗

quoted-string = [CFWS] [CFWS] 'bare-quoted-string' is an intermediate class defined by this parser and not by the RFC grammar. It is the quoted string without any attached CFWS.

(value)

Source from the content-addressed store, hash-verified

1301 return cfws, value
1302
1303def get_quoted_string(value):
1304 """quoted-string = [CFWS] <bare-quoted-string> [CFWS]
1305
1306 'bare-quoted-string' is an intermediate class defined by this
1307 parser and not by the RFC grammar. It is the quoted string
1308 without any attached CFWS.
1309 """
1310 quoted_string = QuotedString()
1311 if value and value[0] in CFWS_LEADER:
1312 token, value = get_cfws(value)
1313 quoted_string.append(token)
1314 token, value = get_bare_quoted_string(value)
1315 quoted_string.append(token)
1316 if value and value[0] in CFWS_LEADER:
1317 token, value = get_cfws(value)
1318 quoted_string.append(token)
1319 return quoted_string, value
1320
1321def get_atom(value):
1322 """atom = [CFWS] 1*atext [CFWS]

Callers 3

get_wordFunction · 0.85
get_valueFunction · 0.85
get_parameterFunction · 0.85

Calls 4

QuotedStringClass · 0.85
get_cfwsFunction · 0.85
get_bare_quoted_stringFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected