summaryrefslogtreecommitdiff
path: root/lib/util/charset/charset.h
AgeCommit message (Collapse)AuthorFilesLines
2011-02-18lib/util/charset Add back setlocale(), but only when called from binariesAndrew Bartlett1-0/+1
When called from a library, we don't want to call this, as we may overwrite some of our calling program's context. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 18 09:29:35 CET 2011 on sn-devel-104
2011-02-18lib/util/charcnv Move iconv handle setup in commonAndrew Bartlett1-0/+5
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
2011-02-18lib/util/charset Use top level iconv.c in source3Andrew Bartlett1-3/+6
The two files were very similar already, the only change required was to adopt the s3 module registration fucntion name. (NTSTATUS wasn't used as the charset code does not otherwise use that type). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-02-18lib/util/charset add functions isupper_m and islower_mAndrew Bartlett1-0/+3
2010-11-03lib/util/charset/util_unistr: add strlen_m_ext_term() - variant of ↵Michael Adam1-0/+2
strlen_m_ext() counting terminator
2010-11-03lib/util/charset/util_unistr: add strlen_m_ext that takes input and output ↵Michael Adam1-0/+1
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-03lib/charcnv/util_unistr: add next_codepoint_ext() that accepts input charset.Michael Adam1-0/+2
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-11-03lib/charset/charcnv: add next_codepoint_convenience_ext() that accepts input ↵Michael Adam1-0/+3
charset. next_codepoint_convenience() 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_convenience_ext() function adds the encoding of the input string as a parameter. next_codepoint_convenience() now only calls next_codepoint_convenience_ext() with CH_UNIX als src_charset argument.
2010-11-03util/charset: remove a duplicate comment.Michael Adam1-5/+0
This seems to have been copied twice from source3/ code.
2010-09-19s3: Fix the charset_pull routine (bug 7531)Volker Lendecke1-1/+1
In the push routine we do the SVAL, so we should do the SSVAL here.
2010-06-25Move UCS2 macros to common codeJelmer Vernooij1-0/+23
2010-03-18charset: fixed a problem with the global use of the iconv_convenience structureAndrew Tridgell1-4/+5
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-04-23Add a new non-convenience version of push_codepoint.Jelmer Vernooij1-1/+2
2009-03-08Revert accidental reintroduction of void ** bug.Jelmer Vernooij1-3/+3
2009-03-01Use common header file for character set handling in Samba 3 and Samba 4.Jelmer Vernooij1-8/+103
2009-03-01s4: Use same function signature for convert_* as s3.Jelmer Vernooij1-6/+8
2009-03-01Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents.Jelmer Vernooij1-1/+2
2009-03-01Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij1-4/+4
consistency with Samba 3.
2009-01-16lib: add strlen_m_term_null from s3.Günther Deschner1-0/+1
Guenther
2008-11-01Remove convert_string_talloc_descriptor, add iconv_talloc().Jelmer Vernooij1-1/+5
2008-10-31finished adding UTF16_MUNGED charsetAndrew Tridgell1-2/+2
Changed the approach for the charset to go via utf16, which makes a bit more sense to read. Added a testsuiite for UTF16_MUNGED as part of LOCAL-ICONV
2008-10-24Remove more global_loadparm instances, fix syntax errors.Jelmer Vernooij1-1/+1
2008-10-24Add version of next_codepoint without iconv_convenience.Jelmer Vernooij1-1/+3
2008-10-24Remove dependency of charset code on loadparm.Jelmer Vernooij1-0/+1
2008-10-24Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij1-2/+12
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24Remove iconv_convenience parameter from simple string push/pullJelmer Vernooij1-17/+16
functions.
2008-10-24Split up codepoints code, use consistent _m suffix.Jelmer Vernooij1-5/+5
2008-10-24Rename string_replace_w to string_replace_m, which is more correct.Jelmer Vernooij1-1/+1
2008-10-24Move charset library to top level.Jelmer Vernooij1-0/+154