Lines Matching refs:data
27 def parse_friend_class(data: str, start: int) -> Tuple[int, str]:
28 name_start = data.find("friend class ", start) + len("friend class ")
29 name_end = data.find(";", name_start)
30 friend_name = data[name_start:name_end].strip(" \n")
34 def parse_class(data: str, start: int = 0, namespace: str = "", parent_class_name: str = "") -> Tuple[int, Dict]:
36 start_of_body = smart_find_first_of_characters("{", data, start)
37 start_of_body, end_of_body = find_scope_borders(data, start_of_body)
38 class_body = data[start_of_body + 1 : end_of_body]
41 colon_pos = find_first_of_characters(":", data, start, start_of_body)
44 start_of_name = data.find("class ", start) + len("class ")
45 end_of_name = find_first_of_characters(" :{", data, start_of_name)
46 class_name = data[start_of_name:end_of_name].strip(" \n")
56 if colon_pos != len(data):
57 extends_class = data[colon_pos + 1 : start_of_body].strip(" \n")
66 def parse_template_prefix(data: str, start: int) -> Tuple[int, str]:
67 start = find_first_not_restricted_character(" ", data, start)
68 if data[start : start + len("template")] != "template":
71 start_of_template_args, end_of_template_args = find_scope_borders(data, start, "<")
72 res = data[start_of_template_args + 1 : end_of_template_args]