"contains" (langString::contains)
A member function of the langString data type. It verifies if the langString contains the given language.
Synopsis
bool langString.contains(int index);
bool langString.contains(string|OaLanguage lang);
Parameters
Parameter | Description |
---|---|
index | the index of the language |
lang | the string or the OaLanguage enum that defines the language |
Return Value
TRUE if the language is contained, FALSE if it is not.
Description
The function checks if the langString contains the given language and returns either TRUE or FALSE.
Example
Makes a langString and checks if it is available in English.
main()
{
bool check;
dyn_string word;
word[1] = "Information";
word[2] = "information";
langString langWord = word;
check = langWord.contains(OaLanguage::en_US);
}
Assignment
miscellaneous functions
Availability
CTRL