Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Static Public Member Functions | List of all members
LingoonaGrammarExtensions Class Reference

Contains class extenstions to simplify string handling More...

Public Types

enum  Gender { Gender.Male, Gender.Female, Gender.Neutral }
 Enum of Genders possible in Lingoona Strings More...
 

Static Public Member Functions

static string LocalizeCommonNoun (this string input, Gender gender)
 Add the Lingoona gender bits to the end of a Common Noun More...
 
static string LocalizeCommonNounFemale (this string input)
 Add the Female Lingoona gender bits to the end of a Common Noun More...
 
static string LocalizeCommonNounMale (this string input)
 Add the Male Lingoona gender bits to the end of a Common Noun More...
 
static string LocalizeCommonNounNeutral (this string input)
 Add the Neutral Lingoona gender bits to the end of a Common Noun More...
 
static string LocalizeName (this string input, Gender gender)
 Add the Lingoona gender bits to the end of a Proper Noun More...
 
static string LocalizeName (this string input, ProtoCrewMember.Gender gender)
 Add the Lingoona gender bits to the end of a Proper Noun More...
 
static string LocalizeName (this string input, FinePrint.Utilities.GrammaticalGender gender)
 Add the Lingoona gender bits to the end of a Proper Noun More...
 
static string LocalizeNameFemale (this string input)
 Add the Female Lingoona gender bits to the end of a Proper Noun More...
 
static string LocalizeNameMale (this string input)
 Add the Male Lingoona gender bits to the end of a Proper Noun More...
 
static string LocalizeNameNeutral (this string input)
 Add the Neutral Lingoona gender bits to the end of a Proper Noun More...
 
static string LocalizeNoun (this string input, Gender gender, bool isProperNoun)
 Adds the appropriate gender bits to the end of a noun More...
 
static string LocalizeRemoveGender (this string input)
 Strip off the lingoona grammer gender definition suffix. More...
 

Detailed Description

Contains class extenstions to simplify string handling

Member Enumeration Documentation

Enum of Genders possible in Lingoona Strings

Enumerator
Male 
Female 
Neutral 

Member Function Documentation

static string LingoonaGrammarExtensions.LocalizeCommonNoun ( this string  input,
Gender  gender 
)
inlinestatic

Add the Lingoona gender bits to the end of a Common Noun

Parameters
genderShould be obvious
Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeCommonNounFemale ( this string  input)
inlinestatic

Add the Female Lingoona gender bits to the end of a Common Noun

Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeCommonNounMale ( this string  input)
inlinestatic

Add the Male Lingoona gender bits to the end of a Common Noun

Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeCommonNounNeutral ( this string  input)
inlinestatic

Add the Neutral Lingoona gender bits to the end of a Common Noun

Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeName ( this string  input,
Gender  gender 
)
inlinestatic

Add the Lingoona gender bits to the end of a Proper Noun

Parameters
genderShould be obvious
Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeName ( this string  input,
ProtoCrewMember.Gender  gender 
)
inlinestatic

Add the Lingoona gender bits to the end of a Proper Noun

Parameters
genderShould be obvious
Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeName ( this string  input,
FinePrint.Utilities.GrammaticalGender  gender 
)
inlinestatic

Add the Lingoona gender bits to the end of a Proper Noun

Parameters
genderShould be obvious
Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeNameFemale ( this string  input)
inlinestatic

Add the Female Lingoona gender bits to the end of a Proper Noun

Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeNameMale ( this string  input)
inlinestatic

Add the Male Lingoona gender bits to the end of a Proper Noun

Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeNameNeutral ( this string  input)
inlinestatic

Add the Neutral Lingoona gender bits to the end of a Proper Noun

Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeNoun ( this string  input,
Gender  gender,
bool  isProperNoun 
)
inlinestatic

Adds the appropriate gender bits to the end of a noun

Parameters
genderShould be obvious
isProperNounIs this a name - True if its a name like 'Trigger', false if its a common noun like 'dummy'
Returns
string with the Lingoona gender definitions appended to the end
static string LingoonaGrammarExtensions.LocalizeRemoveGender ( this string  input)
inlinestatic

Strip off the lingoona grammer gender definition suffix.

Returns
A string without the gender definition suffix

The documentation for this class was generated from the following file: