public void Test_Decomp() { char[] d = Decompose.Find('\x2000').ToCharArray(); Assert.NotNull(d); Assert.Equals(1, d.Length); Assert.Equals('\x0020', d[0]); }
public void Test_Decomp() { char[] d = Decompose.Find('\x2000'); Assertion.AssertNotNull(d); Assertion.AssertEquals(1, d.Length); Assertion.AssertEquals('\x0020', d[0]); }
private void Decomp(StringBuilder result) { int len; string ex; // Decompose for (int i = 0; i < result.Length; i++) { ex = Decompose.Find(result[i]); if (ex == null) { continue; } result[i] = ex[0]; len = ex.Length - 1; if (len > 0) { result.Insert(i + 1, ex.ToCharArray(1, ex.Length - 1)); i += len; } } }