diff --git a/Transformation/ContextFunctions.cs b/Transformation/ContextFunctions.cs index e2aa770..9920d43 100644 --- a/Transformation/ContextFunctions.cs +++ b/Transformation/ContextFunctions.cs @@ -12,10 +12,20 @@ namespace XNeedle.Transformation { public class ContextFunctions { - public static string hex(Context ctx, double value) + public static string hexlit(Context ctx, double value) { uint v = (uint)value; - return $"#x{v:X8}"; + return $"#x{v:x8}"; + } + + public static string lower(Context ctx, string text) + { + return text.ToLower(); + } + + public static string upper(Context ctx, string text) + { + return text.ToUpper(); } public static double GetLevel(Context ctx)