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

Function get_cfws

Lib/email/_header_value_parser.py:1290–1301  ·  view source on GitHub ↗

CFWS = (1*([FWS] comment) [FWS]) / FWS

(value)

Source from the content-addressed store, hash-verified

1288 return comment, value[1:]
1289
1290def get_cfws(value):
1291 """CFWS = (1*([FWS] comment) [FWS]) / FWS
1292
1293 """
1294 cfws = CFWSList()
1295 while value and value[0] in CFWS_LEADER:
1296 if value[0] in WSP:
1297 token, value = get_fws(value)
1298 else:
1299 token, value = get_comment(value)
1300 cfws.append(token)
1301 return cfws, value
1302
1303def get_quoted_string(value):
1304 """quoted-string = [CFWS] <bare-quoted-string> [CFWS]

Callers 15

get_quoted_stringFunction · 0.85
get_atomFunction · 0.85
get_dot_atomFunction · 0.85
get_wordFunction · 0.85
get_phraseFunction · 0.85
get_local_partFunction · 0.85
get_obs_local_partFunction · 0.85
get_domain_literalFunction · 0.85
get_domainFunction · 0.85
get_obs_routeFunction · 0.85
get_angle_addrFunction · 0.85
get_name_addrFunction · 0.85

Calls 4

CFWSListClass · 0.85
get_fwsFunction · 0.85
get_commentFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected