SIL.FieldWorks.FwCoreDlgs.CharContextCtrl.NormalizeFileData C# (CSharp) Method

NormalizeFileData() private method

Normalizes the strings read from the file into D (compatible decomposed).
private NormalizeFileData ( ) : void
return void
		private void NormalizeFileData()
		{
			// The following list of control characters should never appear in plain Unicode
			// data.
			char[] controlChars = new char[] {
				'\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', '\x08', '\x0E', '\x0F',
				'\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18', '\x19',
				'\x1A', '\x1B', '\x7F' };
			for (int i = 0; i < m_fileData.Length; i++)
			{
				if (m_fileData[i].Length > 0)
				{
					if (m_fileData[i].IndexOfAny(controlChars) >= 0)
						throw new Exception(FWCoreDlgsErrors.ksInvalidControlCharacterFound);
					m_fileData[i] = CharPropEngine.NormalizeD(m_fileData[i]);
				}
			}
		}
		#endregion