Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-04-14 | lib/util Move alpha_strcpy() from s3 into common code | Andrew Bartlett | 1 | -46/+0 | |
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 14 09:21:59 CEST 2011 on sn-devel-104 | |||||
2011-04-13 | lib: Move next_token next to next_token_talloc | Volker Lendecke | 1 | -47/+0 | |
Signed-off-by: Jeremy Allison <jra@samba.org> | |||||
2011-04-13 | lib/util/charset Add convert_string_error() | Andrew Bartlett | 1 | -0/+21 | |
This adds an interface that matches the source3/ convert string code. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org> | |||||
2011-03-31 | lib/util/charset Add tests for strcasecmp_m(), talloc_strupper() et al | Andrew Bartlett | 1 | -5/+20 | |
This adds tests for: strncasecmp_m strcasecmp_m strupper_talloc_n strlower_talloc strhaslower strhasupper The tests can certainly be improved with pre-calculated upper and lower case text, but this at least puts them though their paces. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Mar 31 14:24:22 CEST 2011 on sn-devel-104 | |||||
2011-03-30 | Fix convert_string() to take a *converted_size arg. and return a bool. | Jeremy Allison | 1 | -29/+39 | |
Makes these interfaces much harder to misuse and easier to ensure error checking. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104 | |||||
2011-03-25 | lib/util/charset rename iconv_convenience to iconv_handle | Andrew Bartlett | 1 | -20/+20 | |
This better reflects what this structure is Andrew Bartlett | |||||
2011-03-24 | charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵ | Andrew Tridgell | 1 | -23/+19 | |
convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104 | |||||
2011-03-23 | lib/util: Merge basic string length and comparison functions | Andrew Bartlett | 1 | -333/+1 | |
These functions now use the codepoints for more accurate string handling and now form common code. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 23 08:21:54 CET 2011 on sn-devel-104 | |||||
2011-02-18 | lib/util/charcnv Move iconv handle setup in common | Andrew Bartlett | 1 | -26/+0 | |
We now use the struct smb_iconv_convenience at the core of all our iconv code, and use global_iconv_convenience for the callers that don't specify one. Andrew Bartlett | |||||
2010-11-03 | lib/util/charset/util_unistr: clarify the comment header for strlen_m(). | Michael Adam | 1 | -5/+6 | |
2010-11-03 | lib/util/charset/util_unistr: add strlen_m_ext_term() - variant of ↵ | Michael Adam | 1 | -0/+10 | |
strlen_m_ext() counting terminator | |||||
2010-11-03 | lib/util/charset/util_unistr: add strlen_m_ext that takes input and output ↵ | Michael Adam | 1 | -10/+50 | |
charset The function calculates the number of units (8 or 16-bit, depending on the destination charset), that would be needed to convert the input string which is expected to be in in src_charset encoding to the dst_charset (which should be a unicode charset). | |||||
2010-11-03 | lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset. | Michael Adam | 1 | -0/+6 | |
next_codepoint() takes as string in CH_UNIX encoding and returns the unicode codepoint of the next (possibly multibyte) character of the input string. The new next_codepoint_ext() function adds the encoding of the input string as a parameter. next_codepoint() now only calls next_codepoint_ext() with CH_UNIX als src_charset argument. | |||||
2010-03-18 | charset: fixed a problem with the global use of the iconv_convenience structure | Andrew Tridgell | 1 | -1/+2 | |
We had a crash bug where a cached copy of a iconv convenience pointer was used after being freed when loadparm asked for iconv to reload. This could happen if a python module used a iconv based function before loadparm was completed. The fix is to ensure that any use of this pointer remains valid, by reusing the pointer itself when it has already been initialised, but filling in the child elements with the updated values. | |||||
2009-12-18 | Return NULL in strlower_talloc if src is NULL | Brendan Powers | 1 | -0/+4 | |
Prevents strlower_talloc from segfaulting if you pass it a NULL string. Signed-off-by: Andrew Bartlett <abartlet@samba.org> | |||||
2009-10-22 | util: fixed place where we could look one byte past end of string | Andrew Tridgell | 1 | -1/+1 | |
We need to check the length before the value | |||||
2009-04-23 | Fix push_codepoint function without iconv_convenience. | Jelmer Vernooij | 1 | -1/+1 | |
2009-04-23 | Add a new non-convenience version of push_codepoint. | Jelmer Vernooij | 1 | -4/+9 | |
2009-03-09 | Fix prototype mismatch. | Jelmer Vernooij | 1 | -1/+1 | |
2009-03-01 | Use common header file for character set handling in Samba 3 and Samba 4. | Jelmer Vernooij | 1 | -30/+18 | |
2009-03-01 | s4: Use same function signature for convert_* as s3. | Jelmer Vernooij | 1 | -18/+38 | |
2009-03-01 | Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents. | Jelmer Vernooij | 1 | -1/+1 | |
2009-03-01 | Add allow_badcharcnv argument to all conversion function, for | Jelmer Vernooij | 1 | -14/+15 | |
consistency with Samba 3. | |||||
2009-01-16 | lib: add strlen_m_term_null from s3. | Günther Deschner | 1 | -0/+19 | |
Guenther | |||||
2008-10-24 | Remove more global_loadparm instances, fix syntax errors. | Jelmer Vernooij | 1 | -4/+4 | |
2008-10-24 | Add version of next_codepoint without iconv_convenience. | Jelmer Vernooij | 1 | -12/+18 | |
2008-10-24 | Remove dependency of charset code on loadparm. | Jelmer Vernooij | 1 | -2/+5 | |
2008-10-24 | Remove iconv_convenience argument from convert_string{,talloc}() but | Jelmer Vernooij | 1 | -20/+46 | |
make them wrappers around convert_string{,talloc}_convenience(). | |||||
2008-10-24 | Avoid retrieving iconv convenience during loops. | Jelmer Vernooij | 1 | -11/+15 | |
2008-10-24 | Remove iconv_convenience parameter from simple string push/pull | Jelmer Vernooij | 1 | -0/+329 | |
functions. | |||||
2008-10-24 | Split up codepoints code, use consistent _m suffix. | Jelmer Vernooij | 1 | -117/+31 | |
2008-10-24 | Rename string_replace_w to string_replace_m, which is more correct. | Jelmer Vernooij | 1 | -1/+1 | |
2008-10-24 | Move charset library to top level. | Jelmer Vernooij | 1 | -0/+684 | |