rewritten: public interface in TemplatesFunctions::Locale

added a default parameter bool try_default_too = true to some methods: Get(), IsKey()
           added more methods for accessing by an internal index



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@854 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-06-27 23:21:43 +00:00
parent b8ff5d4cfc
commit 403cca5aad
4 changed files with 221 additions and 96 deletions

View File

@@ -397,14 +397,14 @@ void winix_locale_tab(Info & i)
void winix_locale_tab_id(Info & i)
{
if( locale_id < locale.Size() )
i.out << Toi(locale.GetByIndex(L"winix_locale_id", locale_id));
i.out << Toi(locale.GetByIndex(L"winix_locale_id", locale_id, false));
}
void winix_locale_tab_name(Info & i)
{
if( locale_id < locale.Size() )
i.out << locale.GetByIndex(L"locale_name", locale_id);
i.out << locale.GetByIndex(L"locale_name", locale_id, false);
}