summaryrefslogtreecommitdiff
path: root/src/core/wee-string.c
AgeCommit message (Collapse)Author
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
2010-12-09Fix infinite loop in API function string_has_highlight_regex if regex is emptySebastien Helleu
2010-11-25Add new option weechat.look.highlight_regex and function ↵Sebastien Helleu
string_has_highlight_regex in plugin API (task #10321)
2010-11-10Use type "unsigned long long" for API function string_format_sizeSebastien Helleu
2010-10-31Remove dead assignmentsSebastien Helleu
2010-08-27Add new functions in plugin API (hashtable_get_string, hook_info_hashtable, ↵Sebastien Helleu
info_get_hashtable), add IRC info_hashtable "irc_parse_message" Note: tcl >= 8.5 is now required (for tcl plugin).
2010-06-22Update licenses and copyrights, add missing author names in sourcesSebastien Helleu
2010-05-02Add function "string_expand_home" in plugin API, fix bug with replacement of ↵Sebastien Helleu
home in paths
2010-04-18Replace "joker" by "wildcard"Sebastien Helleu
2010-04-08Reformat and add comments for description of C sourcesSebastien Helleu
2010-03-26Fix bug with writing of configuration files when disk is full (bug #29331)Sebastien Helleu
2010-03-19Reformat multi-line commentsSebastien Helleu
2010-03-02Add new option weechat.look.command_chars, add functions ↵Sebastien Helleu
string_is_command_char and string_input_for_buffer in plugin and script API
2010-02-16Add function "string_decode_base64" in plugin APISebastien Helleu
2010-02-15Add SASL authentication in IRC plugin (task #8829), add function ↵Sebastien Helleu
"string_encode_base64" in plugin API, fix bug with base64 encoding New options for IRC servers: - sasl_mechanism (only "plain" for now) - sasl_username - sasl_password
2010-01-24Remove evil tabs in sourcesSebastien Helleu
2010-01-03Update copyright datesSebastien Helleu
2009-06-28Rename function string_explode to string_splitSebastien Helleu
2009-05-09Fix completion with non-latin nicks (bug #18993)Sebastien Helleu
2009-04-24Fix typo: splited/splitted -> splitSebastien Helleu