MCPcopy Index your code
hub / github.com/python/cpython / get_cfws

Function get_cfws

Lib/email/_header_value_parser.py:1307–1318  ·  view source on GitHub ↗

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

(value)

Source from the content-addressed store, hash-verified

1305 return comment, value[1:]
1306
1307def get_cfws(value):
1308 """CFWS = (1*([FWS] comment) [FWS]) / FWS
1309
1310 """
1311 cfws = CFWSList()
1312 while value and value[0] in CFWS_LEADER:
1313 if value[0] in WSP:
1314 token, value = get_fws(value)
1315 else:
1316 token, value = get_comment(value)
1317 cfws.append(token)
1318 return cfws, value
1319
1320def get_quoted_string(value):
1321 """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

Used in the wild real call sites across dependent graphs

searching dependent graphs…