namespace PT renamed to pt

This commit is contained in:
2021-05-20 20:59:12 +02:00
parent d66a36cf21
commit e48a28a5c8
100 changed files with 597 additions and 597 deletions

View File

@@ -113,15 +113,15 @@ bool read = false;
file_name += file;
loc_parser.SetSpace(temp_space);
PT::SpaceParser::Status status = loc_parser.ParseSpaceFile(file_name);
pt::SpaceParser::Status status = loc_parser.ParseSpaceFile(file_name);
if( status == PT::SpaceParser::ok )
if( status == pt::SpaceParser::ok )
{
read = true;
log << log3 << "Locale: read locale from: " << file_name << logend;
}
else
if( status == PT::SpaceParser::syntax_error )
if( status == pt::SpaceParser::syntax_error )
{
log << log1 << "Locale: syntax error in: " << file_name << " in line: " << loc_parser.get_last_parsed_line() << logend;
}
@@ -187,7 +187,7 @@ bool read = false;
loc_parser.SetSpace(temp_space);
if( loc_parser.ParseSpaceFile(file_name) == PT::SpaceParser::ok )
if( loc_parser.ParseSpaceFile(file_name) == pt::SpaceParser::ok )
{
read = true;
CreateSubstVector(subst_url, temp_space.to_wstr(L"url_original"), temp_space.to_wstr(L"url_changeto"));
@@ -266,7 +266,7 @@ void Locale::Read(const char * dir, const char * dir_def)
for(size_t i=0 ; i<locale_files.size() ; ++i)
{
PT::WideToUTF8(locale_files[i], locale_filea);
pt::WideToUTF8(locale_files[i], locale_filea);
ReadFile(dir, dir_def, locale_filea.c_str());
}
@@ -285,7 +285,7 @@ void Locale::Read(const std::string & dir, const std::string & dir_def)
void Locale::Read(const wchar_t * dir, const wchar_t * dir_def)
{
PT::WideToUTF8(dir, adir1);
pt::WideToUTF8(dir, adir1);
if( !dir_def )
{
@@ -293,7 +293,7 @@ void Locale::Read(const wchar_t * dir, const wchar_t * dir_def)
}
else
{
PT::WideToUTF8(dir_def, adir2);
pt::WideToUTF8(dir_def, adir2);
Read(adir1.c_str(), adir2.c_str());
}
}