FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
EmmyLuaCodeStyle/CodeService/src/LanguageTranslator.cpp at master · Endll/EmmyLuaCodeStyle · GitHub
Endll
EmmyLuaCodeStyle
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
EmmyLuaCodeStyle
/
CodeService
/
src
/
LanguageTranslator.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (22 loc) · 542 Bytes
Breadcrumbs
EmmyLuaCodeStyle
/
CodeService
/
src
/
LanguageTranslator.cpp
Copy path
File metadata and controls
26 lines (22 loc) · 542 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
include
"
CodeService/LanguageTranslator.h
"
LanguageTranslator&
LanguageTranslator::GetInstance
()
{
static
LanguageTranslator instance;
return
instance;
}
LanguageTranslator::LanguageTranslator
()
{
}
std::string
LanguageTranslator::Get
(
const
std::string& source)
{
auto
it = _languageDictionary.
find
(source);
if
(it != _languageDictionary.
end
())
{
return
it->
second
;
}
return
source;
}
void
LanguageTranslator::SetLanguageMap
(std::map<std::string, std::string>&& languageDictionary)
{
_languageDictionary = languageDictionary;
}
Back
|
FazBrowse Home
|
New Git URL