summaryrefslogtreecommitdiff
path: root/src/core/wee-string.c
AgeCommit message (Collapse)Author
2022-07-20api: add arguments "index_start" and "index_end" in function ↵Sébastien Helleu
string_rebuild_split_string
2022-07-20api: rename function string_build_with_split_string to ↵Sébastien Helleu
string_rebuild_split_string
2022-02-19core: call strdup in string_strndup if bytes equals strlen of stringSébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2022-01-14core: rename argument "length" to "bytes" in function string_strndupSébastien Helleu
2021-07-04typing: add typing pluginSébastien Helleu
2021-06-22core: fix function string_match with joker in the string if multiple words ↵Sébastien Helleu
matched in input string Before fix: string_match("script.color.text_description", "*script*color*", 0) => 0 After fix: string_match("script.color.text_description", "*script*color*", 0) => 1
2021-05-29core, irc, script: fix typosSébastien Helleu
2021-05-11doc: add XDG directories support in docs (issue #1285)Sébastien Helleu
2021-05-11core: split WeeChat home in 4 directories, use XDG directories by default ↵Sébastien Helleu
(issue #1285) The 4 directories (which can be the same): - config: configuration files, certificates - data: log/upgrade files, local plugins, scripts, xfer files - cache: script repository, scripts downloaded (temporary location) - runtime: FIFO pipe, relay UNIX sockets
2021-01-02core: update copyright datesSébastien Helleu
2021-01-01doc: add note about call to "regfree" after call to "string_regcomp" (plugin ↵Sébastien Helleu
API reference)
2020-08-23api: add argument "bytes" in function string_dyn_concatSébastien Helleu
2020-05-21core: move functions string_base_encode and string_base_decode from ↵Sébastien Helleu
plugin-api.c to wee-string.c
2020-05-21core: return -1 in case of error in functions string_base16_decode and ↵Sébastien Helleu
string_base64_decode
2020-03-01core: move crypto functions to wee-crypto.c, rename API function string_hash ↵Sébastien Helleu
to crypto_hash
2020-03-01core: merge functions string_hash_binary and string_hash into a single ↵Sébastien Helleu
function string_hash
2020-02-29core: add support of CRC32 algorithm in hash functionsSébastien Helleu
2020-02-29api: add functions string_hash_binary and string_hashSébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-10-12core: add reverse of string for screen in evaluation of expressions with ↵Sébastien Helleu
"revscr:"
2019-09-17Fixed segfault during excessive evaluation.Tobias Stoeckmann
It is possible to trigger a segmentation fault while processing an evaluation of repeating string. On a Linux 64 bit system, enter this (or adjust arguments for 32 bit accordingly): /eval -n ${repeat:1073741824,----} It will overflow an integer calculation because int instead of size_t is used. Proper check of int limitations fixes this issue. I haven't changed this specific piece of code to size_t because it would crash in other parts of the code tree instead. For now, int is a limitating factor when it comes to strings (and should be enough for sane use cases). Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-06-15core: check that string pointer is not NULL in function "string_shared_get"Sébastien Helleu
2019-03-17core: fix typo: Weechat -> WeeChatSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-03-09core: add value -1 for keep_eol in function string_strip (issue #1322)Sébastien Helleu
The value -1 means it's a standard split, but empty items are kept, and separators are not removed at beginning/end of string.
2019-02-27api: add function string_match_listSébastien Helleu
2019-01-26core: fix compilation of empty regular expression (not allowed on FreeBSD)Sébastien Helleu
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for all links where secured http is supportedSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-11-04api: add functions string_base_{encode,decode}, remove functions ↵Sébastien Helleu
string_{encode,decode}_base64
2018-11-02api: return integer in function string_encode_base16Sébastien Helleu
2018-11-02api: return integer in function string_encode_base64Sébastien Helleu
2018-11-02core: add support of TOTP generation/validation (Time-based One-Time Password)Sébastien Helleu
2018-10-09core: add repeat of string in evaluation of expressions with ↵Sébastien Helleu
"repeat:count,string" (closes #958)
2018-08-15api: fix memory leak in function string_splitSébastien Helleu
2018-08-12core: fix check of tags in linesSébastien Helleu
All changes: - fix check of tags in lines: check lines without tags, fix check of tags with negation ("!tag") - add string functions string_split_tags and string_free_split_tags - add tests on function gui_line_match_tags
2018-06-02core: add reverse of string in evaluation of expressions with "rev:" (closes ↵Sébastien Helleu
#1200)
2018-06-02core: count number of chars instead of bytes for suffix in function string_cutSébastien Helleu
2018-06-02core: return NULL in function string_cut if string is NULLSébastien Helleu
2018-01-07core: fix some stylesSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-11-04core: add missing includes of stdio.hSébastien Helleu
2017-06-10core: free use of pointer after free in case of error in function ↵Sébastien Helleu
string_dyn_concat
2017-04-24core: add a way to count the suffix length in max chars displayed in cut of ↵Sébastien Helleu
string ("cut:" and "cutscr:") (closes #963) The format to use is one of: - ${cut:+max,suffix,string} - ${cutscr:+max,suffix,string} With the "+" before max, WeeChat ensures there are at most "max" chars in output, including the length of suffix string.
2017-04-22core: ensure length is not negative in function string_strndupSébastien Helleu
2017-04-02api: fix memory leak in function string_dyn_free()Sébastien Helleu
Bug was introduced by commit af138840b3484e106d247c4a6a18a28e8225f5bb.
2017-04-01api: return pointer to string in function string_dyn_free() if argument ↵Sébastien Helleu
"free_string" is 0