public void String8_ToUpperToLower() { // Verify no exception String8.Empty.ToUpperInvariant(); String8.Empty.ToLowerInvariant(); String8 sample = "abcABC@[`{".TestConvert(); sample.ToUpperInvariant(); Assert.AreEqual("ABCABC@[`{", sample.ToString()); sample = "abcABC@[`{".TestConvert(); sample.ToLowerInvariant(); Assert.AreEqual("abcabc@[`{", sample.ToString()); }
public IXColumn Build(IXTable source, XDatabaseContext context) { // Create a String8Block to hold the Lowercase copy of the values String8Block block = new String8Block(); return(SimpleTransformFunction <String8, String8> .Build( Name, source, context.Parser.NextColumn(source, context, typeof(String8)), (string8) => { // Make a copy, make it Lowercase, and return it String8 Lower = block.GetCopy(string8); Lower.ToLowerInvariant(); return Lower; }, () => { // Before each page, clear the String8Block to reuse the memory block.Clear(); } )); }