mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
Add Latin1_to_UTF8 for std::string
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1957 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 1a06e2c45b
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-12-08 (Thu, 08 Dec 2011)
This commit is contained in:
@@ -31,6 +31,7 @@ namespace ZapitTools
|
|||||||
std::string UTF8_to_Latin1 (const char *);
|
std::string UTF8_to_Latin1 (const char *);
|
||||||
std::string UTF8_to_UTF8XML(const char *);
|
std::string UTF8_to_UTF8XML(const char *);
|
||||||
std::string Latin1_to_UTF8 (const char *);
|
std::string Latin1_to_UTF8 (const char *);
|
||||||
|
std::string Latin1_to_UTF8 (const std::string &s);
|
||||||
void replace_char(char * p_act);
|
void replace_char(char * p_act);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -121,6 +121,10 @@ namespace ZapitTools {
|
|||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
std::string Latin1_to_UTF8(const std::string & s)
|
||||||
|
{
|
||||||
|
return Latin1_to_UTF8(s.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
void replace_char(char * p_act)
|
void replace_char(char * p_act)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user