Lines Matching defs:text

190         #'comment',  # "data" is the text, including comment markers
743 column = 'text'
843 def from_str(cls, text):
844 orig = text
845 storage, sep, text = text.strip().partition(' ')
847 text = storage
850 text = orig
852 return cls._from_str(text), storage
855 def _from_str(cls, text):
856 orig = text
857 if text.startswith(('const ', 'volatile ')):
858 typequal, _, text = text.partition(' ')
863 m = re.match(r"^ *'?([a-zA-Z_]\w*(?:\s+[a-zA-Z_]\w*)*)\s*(.*?)'?\s*$", text)
865 raise ValueError(f'invalid vartype text {orig!r}')
911 text = f'{storage} {data}' if storage else str(data)
913 yield text
916 yield text
956 def from_str(cls, text):
957 orig = text
958 storage, sep, text = text.strip().partition(' ')
960 text = storage
963 text = orig
965 return cls._from_str(text), storage
968 def _from_str(cls, text):
969 orig = text
970 inline, sep, text = text.partition('|')
972 text = inline
976 if text.endswith(';'):
977 text = text[:-1]
979 elif text.endswith('{}'):
980 text = text[:-2]
982 index = text.rindex('(')
984 raise ValueError(f'bad signature text {orig!r}')
985 params = text[index:]
987 index = text.rindex('(', 0, index)
989 raise ValueError(f'bad signature text {orig!r}')
990 params = text[index:]
991 text = text[:index]
993 returntype = VarType._from_str(text.rstrip())
1038 text = f'{storage} {data}' if storage else str(data)
1040 yield text
1043 yield text
1120 text = str(data)
1122 yield text
1124 yield text
1126 yield text
1171 def from_str(cls, text):
1172 name, _, vartype = text.partition(': ')
1330 def text(self):