summaryrefslogtreecommitdiff
path: root/src/core/wee-string.c
AgeCommit message (Collapse)Author
2014-04-12api: allow wildcard "*" inside the mask in function string_matchSébastien Helleu
2014-03-20api: add support of nested variables in function string_eval_expression and ↵Sebastien Helleu
command /eval (closes #35)
2014-03-15Merge branch 'exec'Sebastien Helleu
2014-03-13core: fix highlight problem with "(?-i)" and upper case letters in option ↵Sebastien Helleu
weechat.look.highlight
2014-03-13api: add callback in function string_replace_regexSebastien Helleu
2014-02-22core: comment unneeded assignment in function string_split_shell (make C ↵Sebastien Helleu
static analyzer happy)
2014-02-22core: fix uninitialized value in function string_decode_base64Sebastien Helleu
2014-02-22core: fix memory leak and use of invalid pointer in split of string (in case ↵Sebastien Helleu
of insufficient memory)
2014-02-15core: move function string_replace before string_replace_regexSebastien Helleu
2014-02-14doc: add function string_split_shell in plugin API referenceSebastien Helleu
2014-02-14core: change text in comment of function string_replace_regexSebastien Helleu
2014-02-09core: improve the string_replace_regex function (add reference char, change ↵Sebastien Helleu
syntax for match refs) The reference char is now an argument for the function. The references are now $0 .. $99 and $+ was added (last match, with highest number). The syntax to replace a match with one char is now: $.cN or $.c+ (for example: "$.*3").
2014-02-09core: replace "regex_t *" by "void *" in string functions (fix ruby ↵Sebastien Helleu
compilation error with autotools)
2014-02-09core: add argument "num_items" in function string_split_shellSebastien Helleu
2014-02-09trigger: add trigger pluginSebastien Helleu
2014-01-24core: add support of escaped unicode chars in commands /print and "/input ↵Sebastien Helleu
insert"
2014-01-19core: add command /printSebastien Helleu
2014-01-13core: fix typo in /help weechat.look.highlight_regexSebastien Helleu
2014-01-01core: update copyright datesSebastien Helleu
2013-09-02Merge branch 'shared-strings'Sebastien Helleu
2013-08-17core: add commment in function string_shared_get (returned value must not be ↵Sebastien Helleu
changed)
2013-08-12core: add comment with return value of function string_regcompSebastien Helleu
2013-08-10core: add support of shared strings in split of strings (add functions ↵Sebastien Helleu
string_split_shared and string_free_split_shared)
2013-08-10core: add shared strings to reduce memory usageSebastien Helleu
Shared strings are stored in a hashtable with pointer for keys (values are not used). The key has a reference count + the string. The initial reference count is set to 1 and is incremented each time the same string is asked. When removing a shared string, the reference count is decremented. If it becomes 0, then the shared string is removed from the hashtable (and then the string is really destroyed).
2013-08-04api: add argument "options" in function string_eval_expression, add option ↵Sebastien Helleu
"-c" for command /eval (to evaluate a condition)
2013-07-27core: add secured data with optional encryption in file sec.confSebastien Helleu
2013-03-17core: fix typos in many comments and some stringsSebastien Helleu
2013-03-11api: fix bug in string_match when mask begins and ends with "*"Sebastien Helleu
The bug was string_match returning 0 (instead of 1) if mask begins and ends with "*" and if string and mask have same length (except both "*") with same content: string_match("abc", "*abc*", 0) == 0 // BUG: it should return 1 string_match("abcd", "*abc*", 0) == 1 // OK
2013-02-26api: fix function string_mask_to_regex: escape all special chars used in ↵Sebastien Helleu
regex (bug #38398)
2013-01-18core: fix infinite loop when a regex gives an empty match (bug #38112)Sebastien Helleu
2013-01-01core: update copyright datesSebastien Helleu
2012-12-25core: fix detection of command in input: a single command char is considered ↵Nils Görs
as a command (API function "string_input_for_bufer")
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu
2012-11-18core: do not call shell to execute command in hook_process (fix security ↵Sebastien Helleu
problem when a plugin/script gives untrusted command) (bug #37764)
2012-11-02core: add command /eval, use expression in conditions for bars, add function ↵Sebastien Helleu
"string_eval_expression" in plugin API
2012-02-25core: fix expand of path "~" to home of user in function string_expand_home ↵Sebastien Helleu
("~/xxx" was ok, but not "~")
2012-02-05core: fix compilation warning under CygwinSebastien Helleu
2012-01-26api: replace type "regex_t *" by "void *" in function string_regcomp (fix ↵Sebastien Helleu
ruby compilation with autotools)
2012-01-22core: add support of flags in regular expressions and highlight options, add ↵Sebastien Helleu
irc options to customize/disable default nick highlight (task #11128) New functions in C plugin API: - string_regex_flags - string_regcomp New irc options: - irc.look.highlight_server - irc.look.highlight_channel - irc.look.highlight_pv Regex flags are supported in following options/commands: - option weechat.look.highlight - option weechat.look.highlight_regex - options irc.look.highlight_{server|channel|pv} - option relay.network.allowed_ips - core command /filter - irc command /list - irc command /ignore - rmodifier command /rmodifier
2012-01-08core: update copyright datesSebastien Helleu
2011-11-12core: fix compilation under OpenBSD 5.0 (lib utf8 not needed any more) (bug ↵Simon Kuhnle
#34727)
2011-11-12api: add new functions strcasecmp_range and strncasecmp_rangeSebastien Helleu
2011-10-26core: remove unneeded whitespaceSebastien Helleu
2011-10-16core: use value 2 of keep_eol in function string_split to keep separators at ↵Sebastien Helleu
end of string
2011-08-28core: fix bugs with calls to reallocSebastien Helleu
2011-08-26core: use dynamic buffer size for calls to vsnprintfSebastien Helleu
2011-08-18core: remove some compilation warnings under CygwinSebastien Helleu
2011-07-26core: add mouse support (task #5435), free cursor movement, hook_focus, fix ↵Sebastien Helleu
bugs with key "^" (bug #32072, bug #21381), fix bugs with bar windows, completion and /buffer New features and bugs fixed: - mouse support: new command /mouse, new option weechat.look.mouse, new key context "mouse" - free movement of cursor: new command /cursor, new key context "cursor" - new hook_focus (used by cursor and mouse) - info "cursor_mode" - bugs fixed with key "^" - allow plugin name in /buffer name - fix bugs with bar windows: do not create bar windows for hidden bars - fix completion bug when two words for completion are equal but with different case - automatic scroll direction in /bar scroll (x/y is now optional)
2011-01-01Update copyright datesSebastien Helleu