SIL.FieldWorks.UnicodeCharEditor.PUAInstaller.WriteBidiRange C# (CSharp) Méthode

WriteBidiRange() private static méthode

Writes a block representing a range given first and last. If first is not before last, it will do the appropriate printing.
private static WriteBidiRange ( TextWriter writer, string beginning, string end, string generalCategory, string firstName, string lastName, string bidiValue ) : void
writer System.IO.TextWriter The StreamWriter to print to
beginning string A string hexadecimal representing the beginning.
end string A string hexadecimal representing the end.
generalCategory string
firstName string
lastName string
bidiValue string
Résultat void
		private static void WriteBidiRange(TextWriter writer, string beginning, string end, string generalCategory, string firstName, string lastName, string bidiValue)
		{
			if (firstName == "")
				firstName = "???";
			if (lastName == "")
				lastName = "???";

			int codeRangeCount = SubHex(end, beginning) + 1;

			switch (MiscUtils.CompareHex(end, beginning))
			{
				case -1:
					break;
				case 0:
					writer.WriteLine("{0,-14}; {1} # {2,-8} {3} OR {4}",
						beginning, bidiValue, generalCategory, firstName, lastName);
					break;
				case 1:
					string range = beginning + ".." + end;
					string codeCount = "[" + codeRangeCount + "]";
					writer.WriteLine("{0,-14}; {1} # {2} {3,5} {4}..{5}",
						range, bidiValue, generalCategory, codeCount, firstName, lastName);
					break;
			}
			return;
		}
		/// <summary>