/third_party/python/Tools/i18n/ |
H A D | pygettext.py | 327 def __call__(self, ttype, tstring, stup, etup, line): 330 ## print('ttype:', token.tok_name[ttype], 'tstring:', tstring, 332 self.__state(ttype, tstring, stup[0]) 334 def __waiting(self, ttype, tstring, lineno): 340 if ttype == tokenize.STRING and is_literal_string(tstring): 341 self.__addentry(safe_eval(tstring), lineno, isdocstring=1) 348 if ttype == tokenize.NAME and tstring in ('class', 'def'): 351 if ttype == tokenize.NAME and tstring in opts.keywords: 355 maybe_fstring = ast.parse(tstring, mod [all...] |
/third_party/python/Lib/test/ |
H A D | test_codecencodings_jp.py | 11 tstring = multibytecodec_support.load_teststring('shift_jis') variable in Test_CP932 45 tstring = multibytecodec_support.load_teststring('euc_jisx0213') variable in Test_EUC_JIS_2004 55 tstring = multibytecodec_support.load_teststring('euc_jisx0213') variable in Test_EUC_JISX0213 65 tstring = multibytecodec_support.load_teststring('euc_jp') variable in Test_EUC_JP_COMPAT 79 tstring = multibytecodec_support.load_teststring('shift_jis') variable in Test_SJIS_COMPAT 93 tstring = multibytecodec_support.load_teststring('shift_jis') variable in Test_SJIS_2004 111 tstring = multibytecodec_support.load_teststring('shift_jisx0213') variable in Test_SJISX0213
|
H A D | test_codecencodings_cn.py | 11 tstring = multibytecodec_support.load_teststring('gb2312') variable in Test_GB2312 24 tstring = multibytecodec_support.load_teststring('gbk') variable in Test_GBK 38 tstring = multibytecodec_support.load_teststring('gb18030') variable in Test_GB18030 62 tstring = multibytecodec_support.load_teststring('hz') variable in Test_HZ
|
H A D | test_codecencodings_iso2022.py | 15 tstring = multibytecodec_support.load_teststring('iso2022_jp') variable in Test_ISO2022_JP 22 tstring = multibytecodec_support.load_teststring('iso2022_jp') variable in Test_ISO2022_JP2 29 tstring = multibytecodec_support.load_teststring('iso2022_kr') variable in Test_ISO2022_KR
|
H A D | test_codecencodings_kr.py | 11 tstring = multibytecodec_support.load_teststring('cp949') variable in Test_CP949 23 tstring = multibytecodec_support.load_teststring('euc_kr') variable in Test_EUCKR 54 tstring = multibytecodec_support.load_teststring('johab') variable in Test_JOHAB
|
H A D | multibytecodec_support.py | 18 tstring = None # must set. 2 strings to test StreamReader variable in TestBase 38 for b in self.tstring: 177 istream = UTF8Reader(BytesIO(self.tstring[1])) 191 self.assertEqual(ostream.getvalue(), self.tstring[0]) 197 istream = BytesIO(self.tstring[0]) 208 self.assertEqual(ostream.getvalue(), self.tstring[1]) 235 istream = self.reader(BytesIO(self.tstring[0])) 247 self.assertEqual(ostream.getvalue(), self.tstring[1]) 255 istream = UTF8Reader(BytesIO(self.tstring[1])) 271 self.assertEqual(ostream.getvalue(), self.tstring[ [all...] |
H A D | test_codecencodings_hk.py | 11 tstring = multibytecodec_support.load_teststring('big5hkscs') variable in Test_Big5HKSCS
|
H A D | test_codecencodings_tw.py | 11 tstring = multibytecodec_support.load_teststring('big5') variable in Test_Big5
|
/third_party/ltp/testcases/kernel/fs/binfmt_misc/ |
H A D | binfmt_misc02.sh | 79 [ "$ttype" = "E" ] && local tstring="This is test for extension" 80 [ "$ttype" = "M" ] && local tstring="This is test for magic" 82 [ "$valid" = "1" ] && recognised_unrecognised "$tfile" "$tstring" 83 [ "$valid" = "0" ] && unrecognised "$tfile" "$tstring"
|