Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
string_{encode,decode}_base64
|
|
|
|
|
|
|
|
|
|
"repeat:count,string" (closes #958)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
#1200)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
evaluated values
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
expressions
|
|
If no callback is given, a default callback is used, which just compares
pointers.
|
|
expression)
|
|
This fixes two problems:
- stop before max char displayed with wide chars
- preserve combining chars in the output
Before the fix (wrong):
>> ${cutscr:3,+,こんにちは世界}
== [こん+]
>> ${cutscr:1,+,a${\u0308}}
== [a+]
After the fix (OK):
>> ${cutscr:3,+,こんにちは世界}
== [こ+]
>> ${cutscr:1,+,a${\u0308}}
== [ä]
|
|
The syntax is: ${cutscr:max,suffix,string}.
The string is cut after max chars displayed on screen. If the string is cut,
the optional suffix is added after.
|
|
The syntax is: ${cut:max,suffix,string}.
The string is cut after max chars. If the string is cut, the optional suffix is
added after.
|
|
|
|
|
|
New functions:
- string_dyn_alloc
- string_dyn_copy
- string_dyn_concat
- string_dyn_free
|
|
|
|
the string (issue #812)
Some tests are added as well to test the multiple masks in the string.
|
|
|