Home
last modified time | relevance | path

Searched refs:replace (Results 1 – 25 of 90) sorted by relevance

1234

/AliOS-Things-master/components/py_engine/tests/basics/
A Dstring_replace.py1 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 Dbytes_replace.py1 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 Dget_pvmp3.py87 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 Dfile2h.py23 line_end = ending.replace("\r", "\\r").replace("\n", "\\n")
28 line = line.replace("\\", "\\\\")
29 line = line.replace('"', '\\"')
A Dinsert-usb-ids.py21 key = match.group(1).replace(config_prefix, "USB_")
/AliOS-Things-master/hardware/chip/haas1000/
A D_haas1000_alios_lds.py31 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 Dar-lib157 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 Dbazel_to_cmake.py59 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 DREADME.contrib30 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 Dchktrcmp.py43 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 Dgenerator.js110 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 Dheapalloc_str.py16 "foo".replace(",", "_")
/AliOS-Things-master/components/py_engine/tests/
A Drun-tests17 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 Drun-natmodtests.py91 output = output.replace(b"\r\n", b"\n")
103 test_mpy = v.replace("$(ARCH)", args.arch)
A Drun-internalbench.py43 output_mupy = pyb.execfile(test_file).replace(b"\r\n", b"\n")
/AliOS-Things-master/components/freetype/src/tools/docmaker/
A Dtohtml.py172 result = string.replace( line, "&", "&" )
173 result = string.replace( result, "<", "&lt;" )
174 result = string.replace( result, ">", "&gt;" )
272 line = string.replace( line, "~", "&nbsp;" )
/AliOS-Things-master/hardware/chip/rtl872xd/
A Dprepend_header.py18 open(image_file.replace('.bin', '_prepend.bin'), 'wb').write(header + open(image_file, 'rb').read())
/AliOS-Things-master/components/linkkit/wifi_provision/smartconfig/
A Dawss_smartconfig.c706 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 Dmodure.c272 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 DSDL_syslocale.c60 str = str.replace(/-/g, "_"); in SDL_SYS_GetPreferredLocales()
/AliOS-Things-master/components/py_engine/engine/lib/littlefs/
A DREADME.md8 commands in the top-level directory of the littlefs repository (replace the
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/
A Dzconfig_protocol.h90 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 Dmakeqstrdefs.py69 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 DREADME.md15 and for Android (replace `android_arm` with `android_arm64` for 64-bit):
/AliOS-Things-master/components/SDL2/test/nacl/
A Dcommon.js465 var path = pathFormat.replace('{tc}', tc).replace('{config}', config);

Completed in 41 milliseconds

1234