Sébastien Helleu
8da3458f4c
core: add repeat of string in evaluation of expressions with "repeat:count,string" ( closes #958 )
2018-10-09 21:12:02 +02:00
Sébastien Helleu
057f2c3396
tests: properly initialize variable argc before tests on function string_split
2018-08-15 09:43:35 +02:00
Sébastien Helleu
cdc7faf93f
tests: add test on function string_split with a string having only delimiters
2018-08-15 09:42:59 +02:00
Sébastien Helleu
12a6f74ec0
core: fix check of tags in lines
...
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-08-12 20:30:13 +02:00
Sébastien Helleu
1abf4040f1
core: add reverse of string in evaluation of expressions with "rev:" ( closes #1200 )
2018-06-02 16:01:14 +02:00
Sébastien Helleu
ab9a0ec2e6
tests: add missing tests on function string_cut
2018-06-02 15:19:16 +02:00
Sébastien Helleu
be7002b70d
tests: fix tests on function string_regex_flags
2018-01-07 15:04:24 +01:00
Sébastien Helleu
ed4837b2f6
core: update copyright dates
2018-01-05 00:54:18 +01:00
Sébastien Helleu
c65137667b
tests: improve tests on dynamic strings
2017-08-20 11:26:23 +02:00
Sébastien Helleu
94355e2e38
core: ensure length is not negative in function string_strndup
2017-04-22 15:15:54 +02:00
Sébastien Helleu
6ab7af705e
tests: fix tests on dynamic strings
2017-04-01 12:16:12 +02:00
Sébastien Helleu
83117f8d2a
core: add ternary operator (condition) in evaluation of expressions
2017-03-25 14:18:19 +01:00
Sébastien Helleu
07d16903f3
api: add dynamic string functions (string_dyn_*)
...
New functions:
- string_dyn_alloc
- string_dyn_copy
- string_dyn_concat
- string_dyn_free
2017-03-25 14:18:19 +01:00
Sébastien Helleu
705d86e684
core: update copyright dates
2017-01-01 11:32:04 +01:00
Sébastien Helleu
54841f6294
api: fix return of function string_match() when there are multiple masks in the string (issue #812 )
...
Some tests are added as well to test the multiple masks in the string.
2016-10-02 08:58:19 +02:00
Sébastien Helleu
eb86def400
core: rename function string_iconv_fprintf to string_fprintf
2016-07-09 18:28:03 +02:00
Sébastien Helleu
22c0966387
tests: add tests on function string_split_command()
2016-05-14 09:14:08 +02:00
Wojciech Kwolek
a44bcaf080
core: fix the hardcoded separator in string_split_command
2016-05-08 12:14:17 +02:00
Sébastien Helleu
50817054f9
tests: add tests on string_split() with keep_eol set to 2
2016-01-23 10:35:07 +01:00
Sébastien Helleu
3330724574
core: update copyright dates
2016-01-01 11:09:53 +01:00
Sébastien Helleu
57b6e320d3
core: fix execution of empty command name
...
The strings "/" and "/ " are not considered as valid commands any more.
2015-12-31 19:07:14 +01:00
Sébastien Helleu
41cb1bf635
api: fix handle of invalid escape in function string_convert_escaped_chars()
...
And a new test is now checking that "\" returns "".
2015-08-24 11:05:31 +02:00
Sébastien Helleu
951d1f91a4
api: add function string_hex_dump()
2015-08-22 09:30:08 +02:00
Sébastien Helleu
2bd2d74a07
api: add function string_eval_path_home()
2015-06-24 07:54:42 +02:00
Sébastien Helleu
b2a68af077
core: add options weechat.look.word_chars_{highlight|input} ( closes #55 , task #9459 )
2015-04-11 18:53:44 +02:00
Sébastien Helleu
8b056d7d24
tests: check that function string_strndup returns NULL if the given string is NULL
2015-03-22 11:14:12 +01:00
Sébastien Helleu
cace7471f0
tests: remove compiler warnings about unused parameters
2015-03-06 19:24:24 +01:00
Sébastien Helleu
3eb6cd3cd9
tests: remove unused variables
2015-03-03 07:43:23 +01:00
Sébastien Helleu
a020c28ea6
core: update copyright dates
2015-01-01 09:23:23 +01:00
Sébastien Helleu
7818e08964
tests: fix compilation of tests with clang ( closes #275 )
2014-12-10 21:15:40 +01:00
Sébastien Helleu
0d1abd3899
tests: add tests of functions string_shared_get and string_shared_free
2014-11-03 20:52:02 +01:00
Sébastien Helleu
45a0bfe1b3
tests: add test of function string_split_shell with an empty string
2014-10-12 18:09:57 +02:00
Sébastien Helleu
9249738582
tests: add extra check of argv pointer in test of string_split functions
2014-10-12 18:09:04 +02:00
Sébastien Helleu
8b23106145
tests: initialize argc to -1 instead of 1 before some tests
2014-10-12 18:07:53 +02:00
Sébastien Helleu
f39b37351c
tests: fix build of tests when the build directory is outside source tree ( closes #178 )
2014-08-25 07:38:38 +02:00
Sébastien Helleu
99b7aa9d27
tests: fix memory leaks
2014-08-14 19:13:32 +02:00
Sébastien Helleu
00e79af39c
tests: add tests of function string_split_shell
2014-08-14 19:12:00 +02:00
Sébastien Helleu
536318eafe
tests: add tests of function string_replace_with_callback
2014-08-14 07:38:42 +02:00
Sébastien Helleu
a538a9c08e
tests: add tests of function string_replace_regex
2014-08-09 09:08:06 +02:00
Sébastien Helleu
13fc108c6d
tests: add TODO comments for missing tests
2014-08-06 07:53:04 +02:00
Sébastien Helleu
1aa8fd09ef
tests: add tests of functions string_is_command_char and string_input_for_buffer
2014-08-02 16:55:49 +02:00
Sébastien Helleu
28cb1ae6f5
tests: add tests of base 16/64 decoding/encoding
2014-08-02 16:54:24 +02:00
Sébastien Helleu
d046315e8b
api: fix function string_format_size on 32-bit systems
2014-08-02 11:44:15 +02:00
Sébastien Helleu
2987f9208e
tests: add tests of function string_format_size
2014-08-01 07:34:35 +02:00
Sébastien Helleu
aaa29153b0
tests: add tests of functions string_iconv*
2014-07-31 07:48:36 +02:00
Sébastien Helleu
3d6b9ff5a7
tests: add tests of function string_is_word_char
2014-07-29 07:39:30 +02:00
Sébastien Helleu
db9a8e7bc4
tests: add unit tests using CppUTest
...
The tests can be run only via CMake:
1. build with tests: cmake .. -DENABLE_TESTS=ON
2. make
3. ctest (or ctest -V for verbose output)
2014-07-20 12:13:25 +02:00