Translator/include/specialKeyStrings.h

Go to the documentation of this file.
00001 #ifndef TRANSLATOR_SPECIALKEYSTRINGS_H
00002 #define TRANSLATOR_SPECIALKEYSTRINGS_H
00003 
00004 #include <string>
00005 
00006 namespace Translator {
00007 
00008 /// returns "do_not_translate"
00009 const std::string & doNotTranslatePrefix();
00010 
00011 /// returns "src_do_not_translate"
00012 const std::string & srcDoNotTranslatePrefix();
00013 
00014 /// returns true if "do_not_translate" starts key.
00015 /// optionally, will return a string that has "do_not_translate", 
00016 /// "do_not_translate:" or "do_not_translate_" stripped from the
00017 /// input key. This is returned through the output argument - 
00018 /// keyWithPrefixStripped
00019 bool hasDoNotTranslatePrefix(const std::string &key, std::string *keyWithPrefixStripped=NULL);
00020 
00021 /// returns true if "src_do_not_translate" starts key.
00022 /// optionally, will return a string that has "src_do_not_translate", 
00023 /// "src_do_not_translate:" or "src_do_not_translate_" stripped from the
00024 /// input key. This is returned through the output argument - 
00025 /// keyWithPrefixStripped
00026 bool hasSrcDoNotTranslatePrefix(const std::string &key, std::string *keyWithPrefixStripped=NULL);
00027 
00028 /// returns translate_vlen
00029 const std::string & ndarrayVlenPrefix();
00030 
00031 
00032 /// returns true if "translate_vlen" starts key.
00033 /// optionally, will return a string that has "translate_vlen", 
00034 /// "translate_vlen:" or "translate_vlen_" stripped from the
00035 /// input key. This is returned through the output argument - 
00036 /// keyWithPrefixStripped
00037 bool hasNDArrayVlenPrefix(const std::string &key, std::string *keyWithPrefixStripped=NULL);
00038 
00039 } // namespace
00040 
00041 #endif

Generated on 19 Dec 2016 for PSDMSoftware by  doxygen 1.4.7