Cleanup.
This commit is contained in:
@@ -128,10 +128,10 @@ static bool AttemptJapaneseConversion( RString &sText ) { return false; }
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool ConvertString(RString &str, const RString &encodings)
|
bool ConvertString( RString &str, const RString &encodings )
|
||||||
{
|
{
|
||||||
vector<RString> lst;
|
vector<RString> lst;
|
||||||
split(encodings, ",", lst);
|
split( encodings, ",", lst );
|
||||||
|
|
||||||
for(unsigned i = 0; i < lst.size(); ++i)
|
for(unsigned i = 0; i < lst.size(); ++i)
|
||||||
{
|
{
|
||||||
@@ -144,21 +144,21 @@ bool ConvertString(RString &str, const RString &encodings)
|
|||||||
}
|
}
|
||||||
if( lst[i] == "english" )
|
if( lst[i] == "english" )
|
||||||
{
|
{
|
||||||
if(AttemptEnglishConversion(str))
|
if( AttemptEnglishConversion(str) )
|
||||||
return true;
|
return true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( lst[i] == "japanese" )
|
if( lst[i] == "japanese" )
|
||||||
{
|
{
|
||||||
if(AttemptJapaneseConversion(str))
|
if( AttemptJapaneseConversion(str) )
|
||||||
return true;
|
return true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( lst[i] == "korean" )
|
if( lst[i] == "korean" )
|
||||||
{
|
{
|
||||||
if(AttemptKoreanConversion(str))
|
if( AttemptKoreanConversion(str) )
|
||||||
return true;
|
return true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,6 @@
|
|||||||
* separated list of encodings. The only valid strings are "japanese" and "korean".
|
* separated list of encodings. The only valid strings are "japanese" and "korean".
|
||||||
* Return true if the conversion was successful (or a no-op). Return false and
|
* Return true if the conversion was successful (or a no-op). Return false and
|
||||||
* leave the string unchanged if the conversion was unsuccessful. */
|
* leave the string unchanged if the conversion was unsuccessful. */
|
||||||
bool ConvertString(RString &str, const RString &encodings);
|
bool ConvertString( RString &str, const RString &encodings );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user