/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | string_replace.py | 1 print("".replace("a", "b")) 2 print("aaa".replace("b", "c")) 3 print("aaa".replace("a", "b", 0)) 4 print("aaa".replace("a", "b", -5)) 7 print("a".replace("aa", "bb")) 11 print("".replace("", "1")) 12 print("A".replace("", "1")) 13 print("AB".replace("", "1")) 14 print("AB".replace("", "12")) 17 'abc'.replace(1, 2) [all …]
|
A D | bytes_replace.py | 1 print(b"".replace(b"a", b"b")) 2 print(b"aaa".replace(b"a", b"b", 0)) 3 print(b"aaa".replace(b"a", b"b", -5)) 4 print(b"asdfasdf".replace(b"a", b"b")) 5 print(b"aabbaabbaabbaa".replace(b"aa", b"cc", 3)) 6 print(b"a".replace(b"aa", b"bb")) 7 print(b"testingtesting".replace(b"ing", b"")) 10 print(b"".replace(b"", b"1")) 11 print(b"A".replace(b"", b"1")) 12 print(b"AB".replace(b"", b"1")) [all …]
|
/AliOS-Things-master/components/uvoice/codec/opensource/pvmp3/ |
A D | get_pvmp3.py | 87 code = code.replace('double(', '(double)(') 88 code = code.replace('int32(', '(int32)(') 89 … code = code.replace('huffcodetab ht[HUFF_TBL];', 'struct huffcodetab ht[HUFF_TBL];') 90 code = code.replace('huffcodetab *pHuff;', 'struct huffcodetab *pHuff;') 91 code = code.replace('__inline', 'static inline') 92 code = code.replace('inline int16 saturate16', 'static int16 saturate16') 93 code = code.replace('new_slen[4];', 'new_slen[4] = {0,0,0,0};')
|
/AliOS-Things-master/components/py_engine/engine/tools/ |
A D | file2h.py | 23 line_end = ending.replace("\r", "\\r").replace("\n", "\\n") 28 line = line.replace("\\", "\\\\") 29 line = line.replace('"', '\\"')
|
A D | insert-usb-ids.py | 21 key = match.group(1).replace(config_prefix, "USB_")
|
/AliOS-Things-master/hardware/chip/haas1000/ |
A D | _haas1000_alios_lds.py | 31 key_value[key] = key_value[key].replace("#", " ") 42 key_value[key] = value.replace('\\\"', '\\\\\\\"') 47 value = key_value[key].replace("#", " ") 48 key_value[key] = value.replace('\\\"', '\"') 67 key_value[key] = key_value[key].replace("\\", "\\\\") 88 data = item.replace('=', " ")
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | ar-lib | 157 replace= 168 r*) replace=yes ;; 181 case $delete$extract$list$quick$replace,$index in 233 elif test -n "$quick$replace"; then
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/cmake/ |
A D | bazel_to_cmake.py | 59 result = result.replace(replacement[0], replacement[1]) 129 raw=name[2:].replace('/', '_').replace(':', '_') 198 select_name = select_name.replace('c++', 'cxx') 267 package_prefix = bazel_package_relative_dir.replace(os.path.sep, '_')
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/ |
A D | README.contrib | 30 assembler to replace longest_match() and inflate_fast() 36 Tuned x86 gcc asm code to replace inflate_fast() 50 replace longest_match() and inflate_fast(), also masm x86 54 x86 asm code to replace longest_match() and inflate_fast(),
|
/AliOS-Things-master/components/freetype/src/tools/ |
A D | chktrcmp.py | 43 SRC_FILE_DIRS = sys.argv[i].replace( "--src-dirs=", "", 1 ).split( ":" ) 45 TRACE_DEF_FILES = sys.argv[i].replace( "--def-files=", "", 1 ).split( ":" )
|
/AliOS-Things-master/components/amp/libjs/ |
A D | generator.js | 110 minifyContent = minifyContent.replace(/\\/g, "\\\\").replace(/"/g, "\\\""); 157 let initContent = fs.readFileSync('./init.js').toString().replace(/"/g, "\\\"");
|
/AliOS-Things-master/components/py_engine/tests/micropython/ |
A D | heapalloc_str.py | 16 "foo".replace(",", "_")
|
/AliOS-Things-master/components/py_engine/tests/ |
A D | run-tests | 17 return os.path.abspath(os.path.join(BASEPATH, *p)).replace('\\', '/') 189 output_mupy = output_mupy.replace(b'\r\n', b'\n') 461 test_file = test_file.replace('\\', '/') 472 test_basename = test_file.replace('..', '_').replace('./', '').replace('/', '_') 523 output_expected = output_expected.replace(b'\r\n', b'\n')
|
A D | run-natmodtests.py | 91 output = output.replace(b"\r\n", b"\n") 103 test_mpy = v.replace("$(ARCH)", args.arch)
|
A D | run-internalbench.py | 43 output_mupy = pyb.execfile(test_file).replace(b"\r\n", b"\n")
|
/AliOS-Things-master/components/freetype/src/tools/docmaker/ |
A D | tohtml.py | 172 result = string.replace( line, "&", "&" ) 173 result = string.replace( result, "<", "<" ) 174 result = string.replace( result, ">", ">" ) 272 line = string.replace( line, "~", " " )
|
/AliOS-Things-master/hardware/chip/rtl872xd/ |
A D | prepend_header.py | 18 open(image_file.replace('.bin', '_prepend.bin'), 'wb').write(header + open(image_file, 'rb').read())
|
/AliOS-Things-master/components/linkkit/wifi_provision/smartconfig/ |
A D | awss_smartconfig.c | 706 goto replace; in try_to_sync_pos() 748 replace: in try_to_sync_pos() 791 int replace = 0, i, old_match = 0, new_match = 0; in try_to_replace_same_pos() local 805 replace = 1; in try_to_replace_same_pos() 809 return replace; in try_to_replace_same_pos() 1179 int replace; in awss_recv_callback_smartconfig() local 1185 replace = try_to_replace_same_pos(tods, pos, len); in awss_recv_callback_smartconfig() 1186 if (replace) { in awss_recv_callback_smartconfig()
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | modure.c | 272 mp_obj_t replace = args[1]; in re_sub_helper() local 313 … mp_obj_str_get_str((mp_obj_is_callable(replace) ? mp_call_function_1(replace, MP_OBJ_FROM_PTR(mat… in re_sub_helper()
|
/AliOS-Things-master/components/SDL2/src/locale/emscripten/ |
A D | SDL_syslocale.c | 60 str = str.replace(/-/g, "_"); in SDL_SYS_GetPreferredLocales()
|
/AliOS-Things-master/components/py_engine/engine/lib/littlefs/ |
A D | README.md | 8 commands in the top-level directory of the littlefs repository (replace the
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/ |
A D | zconfig_protocol.h | 90 uint8_t replace; /* whether pkg has been replaced recently */ member 136 #define zc_replace (zconfig_data->data[tods].replace)
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | makeqstrdefs.py | 69 fname = fname.replace(m, r) 99 name = match.replace("MP_QSTR_", "")
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/examples/unity/TensorFlowLitePlugin/ |
A D | README.md | 15 and for Android (replace `android_arm` with `android_arm64` for 64-bit):
|
/AliOS-Things-master/components/SDL2/test/nacl/ |
A D | common.js | 465 var path = pathFormat.replace('{tc}', tc).replace('{config}', config);
|