public uc_CaretAttribs( Point p1, uc_Chars.Sets p2, uc_Chars.Sets p3, uc_Chars.Sets p4, uc_Chars.Sets p5, CharAttribStruct p6) { this.Pos = p1; this.G0Set = p2; this.G1Set = p3; this.G2Set = p4; this.G3Set = p5; this.Attribs = p6; }
public uc_CaretAttribs( System.Drawing.Point p1, uc_Chars.Sets p2, uc_Chars.Sets p3, uc_Chars.Sets p4, uc_Chars.Sets p5, CharAttribs p6) { //prntSome.printSome("uc_CaretAttribs"); this.Pos = p1; this.G0Set = p2; this.G1Set = p3; this.G2Set = p4; this.G3Set = p5; this.Attribs = p6; }
public static System.Char Get(System.Char CurChar, uc_Chars.Sets GL, uc_Chars.Sets GR) { //prntSome.printSome("Get"); uc_CharSet[] CurSet; // I'm assuming the left hand in use table will always have a 00-7F char set in it if (System.Convert.ToInt32(CurChar) < 128) { switch (GL) { case uc_Chars.Sets.ASCII: CurSet = uc_Chars.ASCII; break; case uc_Chars.Sets.DECSG: CurSet = uc_Chars.DECSG; break; case uc_Chars.Sets.NRCUK: CurSet = uc_Chars.NRCUK; break; case uc_Chars.Sets.NRCFinnish: CurSet = uc_Chars.NRCFinnish; break; case uc_Chars.Sets.NRCFrench: CurSet = uc_Chars.NRCFrench; break; case uc_Chars.Sets.NRCFrenchCanadian: CurSet = uc_Chars.NRCFrenchCanadian; break; case uc_Chars.Sets.NRCGerman: CurSet = uc_Chars.NRCGerman; break; case uc_Chars.Sets.NRCItalian: CurSet = uc_Chars.NRCItalian; break; case uc_Chars.Sets.NRCNorDanish: CurSet = uc_Chars.NRCNorDanish; break; case uc_Chars.Sets.NRCPortuguese: CurSet = uc_Chars.NRCPortuguese; break; case uc_Chars.Sets.NRCSpanish: CurSet = uc_Chars.NRCSpanish; break; case uc_Chars.Sets.NRCSwedish: CurSet = uc_Chars.NRCSwedish; break; case uc_Chars.Sets.NRCSwiss: CurSet = uc_Chars.NRCSwiss; break; default: CurSet = uc_Chars.ASCII; break; } } // I'm assuming the right hand in use table will always have a 80-FF char set in it else { switch (GR) { case uc_Chars.Sets.ISOLatin1S: CurSet = uc_Chars.ISOLatin1S; break; case uc_Chars.Sets.DECS: CurSet = uc_Chars.DECS; break; default: CurSet = uc_Chars.DECS; break; } } for (System.Int32 i = 0; i < CurSet.Length; i++) { if (CurSet[i].Location == System.Convert.ToInt32(CurChar)) { System.Byte[] CurBytes = System.BitConverter.GetBytes(CurSet[i].UnicodeNo); System.Char[] NewChars = System.Text.Encoding.Unicode.GetChars(CurBytes); return(NewChars[0]); } } return(CurChar); }
public uc_Chars(uc_Chars.Sets p1) { //prntSome.printSome("uc_Chars"); this.Set = p1; }
private void SelectCharSet(ref uc_Chars.Sets CurTarget, System.String CurString) { //prntSome.printSome("SelectCharSet"); switch (CurString) { case "B": CurTarget = uc_Chars.Sets.ASCII; break; case "%5": CurTarget = uc_Chars.Sets.DECS; break; case "0": CurTarget = uc_Chars.Sets.DECSG; break; case ">": CurTarget = uc_Chars.Sets.DECTECH; break; case "<": CurTarget = uc_Chars.Sets.DECSG; break; case "A": if ((this.Modes.Flags & uc_Mode.National) == 0) { CurTarget = uc_Chars.Sets.ISOLatin1S; } else { CurTarget = uc_Chars.Sets.NRCUK; } break; case "4": // CurTarget = uc_Chars.Sets.NRCDutch; break; case "5": CurTarget = uc_Chars.Sets.NRCFinnish; break; case "R": CurTarget = uc_Chars.Sets.NRCFrench; break; case "9": CurTarget = uc_Chars.Sets.NRCFrenchCanadian; break; case "K": CurTarget = uc_Chars.Sets.NRCGerman; break; case "Y": CurTarget = uc_Chars.Sets.NRCItalian; break; case "6": CurTarget = uc_Chars.Sets.NRCNorDanish; break; case "'": CurTarget = uc_Chars.Sets.NRCNorDanish; break; case "%6": CurTarget = uc_Chars.Sets.NRCPortuguese; break; case "Z": CurTarget = uc_Chars.Sets.NRCSpanish; break; case "7": CurTarget = uc_Chars.Sets.NRCSwedish; break; case "=": CurTarget = uc_Chars.Sets.NRCSwiss; break; default: break; } }
public uc_Chars(uc_Chars.Sets p1) { this.Set = p1; }