some work in Space
- default value returned from TextRef() git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@1083 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010-2017, Tomasz Sowa
|
||||
* Copyright (c) 2010-2018, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -239,21 +239,21 @@ public:
|
||||
|
||||
AText(...) always returns a reference to UTF-8 string
|
||||
*/
|
||||
std::wstring Text(const wchar_t * name) const;
|
||||
std::wstring Text(const wchar_t * name, const wchar_t * def) const;
|
||||
std::wstring Text(const std::wstring & name, const wchar_t * def) const;
|
||||
//std::wstring Text(const wchar_t * name) const;
|
||||
std::wstring Text(const wchar_t * name, const wchar_t * def = 0) const;
|
||||
std::wstring Text(const std::wstring & name, const wchar_t * def = 0) const;
|
||||
std::wstring Text(const std::wstring & name, const std::wstring & def) const;
|
||||
|
||||
// returns a reference
|
||||
// if there is no such an option then a new one (def value) is inserted
|
||||
std::wstring & TextRef(const wchar_t * name);
|
||||
std::wstring & TextRef(const wchar_t * name, const wchar_t * def);
|
||||
std::wstring & TextRef(const std::wstring & name, const wchar_t * def);
|
||||
//std::wstring & TextRef(const wchar_t * name);
|
||||
std::wstring & TextRef(const wchar_t * name, const wchar_t * def = 0);
|
||||
std::wstring & TextRef(const std::wstring & name, const wchar_t * def = 0);
|
||||
std::wstring & TextRef(const std::wstring & name, const std::wstring & def);
|
||||
|
||||
|
||||
// returns UTF-8 string
|
||||
std::string TextA(const wchar_t * name) const;
|
||||
//std::string TextA(const wchar_t * name) const;
|
||||
std::string TextA(const wchar_t * name, const char * def) const;
|
||||
std::string TextA(const std::wstring & name, const char * def) const;
|
||||
std::string TextA(const std::wstring & name, const std::string & def) const;
|
||||
|
Reference in New Issue
Block a user