41 Commits

Author SHA1 Message Date
pikastech
bf129bb398 fix parse err for 'test'.split()[0]
add test
2023-05-05 21:47:52 +08:00
pikastech
f6d8001f37 support string.find() 2023-04-27 19:44:51 +08:00
lyon
ec8405d304 support str.join()
fix VM for nano mode
2023-03-11 22:36:12 +08:00
lyon
6c6be65db6 support add and build 2023-02-22 21:59:28 +08:00
lyon
85d989028e support bool type 2023-02-18 16:35:03 +08:00
lyon
fd910ea086 support split_str 2023-01-21 19:29:35 +08:00
lyon
c8ab4ce3cb adding format
fix star with pos
2022-11-29 20:05:13 +08:00
lyon
e89c585f46 update kernal, fix CI 2022-11-22 18:01:54 +08:00
lyon
b481c1c72b use pikaList, pikaDict, pikaTuple API 2022-11-19 19:11:34 +08:00
pikastech
f5efb11a75 optimize speed for string funs
optimize str sppeed

add prof.sh

not -pg in default
2022-10-06 12:44:40 +08:00
pikastech
603d09febd optimize speed for strEqu 2022-10-05 22:29:22 +08:00
pikastech
b21fd029ed optimize str slice, time speed recuse 95% 2022-09-29 20:41:57 +08:00
pikastech
71d7298057 support string.strip(ch) 2022-09-29 18:47:03 +08:00
pikastech
d3026c7c99 support slice utf8 for str
add test for slice utf-8
2022-09-15 16:27:02 +08:00
pikastech
10c7f1a261 add __callback inline bytecode
impl strlwr for linux, merge codede.c to _String.c
2022-09-08 08:17:01 +08:00
eglwang
9d4c9689a9 support UTF-16,UTF-32 in pikaStdData_String.encode 2022-09-07 22:29:52 +08:00
eglwang
ba42a3924c fix a bug in PikaStdData_String___setitem__ 2022-09-07 22:19:11 +08:00
pikastech
9cb3f586d5 fix PIKA_STRING_UTF8_EANBLE = 0 2022-09-06 08:19:05 +08:00
pikastech
91461e3f17 fix warnings 2022-09-05 22:37:31 +08:00
pikastech
d5ab75af41 fix some wars, fix mem leak, add unit test 2022-09-05 22:30:28 +08:00
eglwang
da84347d3d move UTF-8Support define 2022-09-05 21:45:54 +08:00
eglwang
7a5a020af9 add UTF-8 support for pikaStdData_String 2022-09-05 21:29:30 +08:00
pikastech
bb54c2e719 support setattr and getattr
run tests() in cases is ok
2022-08-11 17:39:38 +08:00
pikastech
117096a764 correct the sort of fun dec in .h
fix .h and .pyi

update PikaMath

update pika_cjson
2022-07-30 18:56:20 +08:00
pikastech
1d7bcf2a39 use __getitem__ __setitem__ instead of __get__ __set__ 2022-07-29 23:40:16 +08:00
pikastech
de10086338 add arg_new<T> api
update version
2022-07-20 10:34:50 +08:00
pikastech
8f9950d4ae support decode() and encode()
for PikaStdData.String() and PikaStdData.ByteArray()

use example/BuiltIn/encode_decode.py

fix CI
2022-07-14 12:02:38 +08:00
李昂
81a5f0b965 !40 support configparser_read_string
* configparser read_string is ok
* support replace() and strip() for StdData.String()
* add file and test of configparser
2022-07-04 07:16:44 +00:00
pikastech
865290df74 support len() for object and __len__().
* list, dict, dict_keys is ok
2022-06-24 18:18:06 +08:00
pikastech
fca634f3cc use -> List 2022-06-21 17:49:18 +08:00
pikastech
1087ed0674 support split() for String Class 2022-06-21 17:42:03 +08:00
pikastech
c6aa57c06f use the relative path for PikaStdData_String_Util.h 2022-06-02 22:48:58 +08:00
purewind7
f1209ead44 add some methods for string 2022-06-02 20:26:35 +08:00
lyon
879cc7b2e7 support startwith() and endwith() for String 2022-06-02 15:12:28 +08:00
lyon
a97d6f3f76 support __str__ for String(), find mem leak when print(String('test')) 2022-06-01 11:46:59 +08:00
lyon
aa676d380b format 2022-04-28 00:49:40 +08:00
lyon
88c0fd481e add _refcnt when get refArg from object 2022-04-25 19:19:44 +08:00
lyon
e03af6c5a7 rename __POINTER_ to REF_OBJECT 2022-04-25 14:43:44 +08:00
lyon1998
105becd7de update pikatsddata_String.c 2022-04-04 16:35:56 +08:00
lyon
a966d43ad0 update PikaStdLib 2022-03-02 15:27:19 +08:00
lyon
0b849c48bc collect Std compoment all to PikaStdLib 2022-01-30 16:46:33 +08:00