added: Space::Remove(const wchar_t * name)

Space::Remove(const std::wstring & name)


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@395 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2012-03-06 13:17:25 +00:00
parent f29a7a41d4
commit 0b97609811
2 changed files with 22 additions and 0 deletions

View File

@ -431,6 +431,24 @@ return val;
void Space::Remove(const wchar_t * name)
{
tmp_name = name;
table_single.erase(tmp_name);
table.erase(tmp_name);
}
void Space::Remove(const std::wstring & name)
{
table_single.erase(name);
table.erase(name);
}
Space & Space::AddSpace(const wchar_t * name)

View File

@ -225,6 +225,10 @@ public:
std::wstring & Add(const wchar_t * name, const std::wstring & value);
std::wstring & Add(const std::wstring & name, const std::wstring & value);
void Remove(const wchar_t * name);
void Remove(const std::wstring & name);
Space & AddSpace(const wchar_t * name);
Space & AddSpace(const std::wstring & name);