static private Link CreateSimpleCharacterLink(char character) { return(Link.Create(Net.Character, Net.ThatHas, Link.Create(Net.Code, Net.ThatIsRepresentedBy, LinkConverter.FromNumber(character)))); }
static private void SetLetterCodes(Link letter, char lowerCaseCharacter, out Link lowerCase, out Link upperCase) { char upperCaseCharacter = char.ToUpper(lowerCaseCharacter); if (upperCaseCharacter != lowerCaseCharacter) { lowerCase = Link.Create(Net.LowerCase, Net.Of, letter); Link lowerCaseCharacterCode = Link.Create(Net.Code, Net.ThatIsRepresentedBy, LinkConverter.FromNumber(lowerCaseCharacter)); Link.Create(lowerCase, Net.Has, lowerCaseCharacterCode); upperCase = Link.Create(Net.UpperCase, Net.Of, letter); Link upperCaseCharacterCode = Link.Create(Net.Code, Net.ThatIsRepresentedBy, LinkConverter.FromNumber(upperCaseCharacter)); Link.Create(upperCase, Net.Has, upperCaseCharacterCode); } else { lowerCase = letter; upperCase = null; Link.Create(letter, Net.Has, Link.Create(Net.Code, Net.ThatIsRepresentedBy, LinkConverter.FromNumber(lowerCaseCharacter))); } }