mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
remove extra ';'
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@282 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: dbd9a26801
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2010-02-06 (Sat, 06 Feb 2010)
Origin message was:
------------------
remove extra ';'
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@282 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -31,6 +31,6 @@ 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 *);
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -69,13 +69,13 @@ namespace ZapitTools {
|
|||||||
std::string UTF8_to_UTF8XML(const char * s)
|
std::string UTF8_to_UTF8XML(const char * s)
|
||||||
{
|
{
|
||||||
std::string r;
|
std::string r;
|
||||||
|
|
||||||
while ((*s) != 0)
|
while ((*s) != 0)
|
||||||
{
|
{
|
||||||
/* cf. http://www.w3.org/TR/xhtml1/dtds.html */
|
/* cf. http://www.w3.org/TR/xhtml1/dtds.html */
|
||||||
switch (*s)
|
switch (*s)
|
||||||
{
|
{
|
||||||
case '<':
|
case '<':
|
||||||
r += "<";
|
r += "<";
|
||||||
break;
|
break;
|
||||||
case '>':
|
case '>':
|
||||||
@@ -101,7 +101,7 @@ namespace ZapitTools {
|
|||||||
std::string Latin1_to_UTF8(const char * s)
|
std::string Latin1_to_UTF8(const char * s)
|
||||||
{
|
{
|
||||||
std::string r;
|
std::string r;
|
||||||
|
|
||||||
while((*s) != 0)
|
while((*s) != 0)
|
||||||
{
|
{
|
||||||
unsigned char c = *s;
|
unsigned char c = *s;
|
||||||
@@ -117,7 +117,7 @@ namespace ZapitTools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
Reference in New Issue
Block a user