Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F625710
language-string.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
991 B
Referenced Files
None
Subscribers
None
language-string.h
View Options
#ifndef _rtech1_language_string_h
#define _rtech1_language_string_h
#include
<string>
#include
<map>
class
LanguageString
:
public
std
::
string
{
public
:
LanguageString
();
LanguageString
(
const
char
*
stuff
);
LanguageString
(
const
std
::
string
&
stuff
);
LanguageString
(
const
std
::
string
&
stuff
,
const
std
::
string
&
language
);
LanguageString
(
const
LanguageString
&
language
);
LanguageString
&
operator
=
(
const
LanguageString
&
obj
);
static
const
std
::
string
defaultLanguage
(){
return
"English"
;
}
const
std
::
string
currentLanguage
()
const
;
/* add a new language translation */
void
add
(
const
std
::
string
&
stuff
,
const
std
::
string
&
language
);
/* adds with the default language */
void
add
(
const
std
::
string
&
stuff
);
std
::
string
get
()
const
;
inline
const
std
::
map
<
std
::
string
,
std
::
string
>
&
getLanguages
()
const
{
return
languages
;
}
protected
:
std
::
map
<
std
::
string
,
std
::
string
>
languages
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 11:48 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
112765
Default Alt Text
language-string.h (991 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline