Rename hex() to hexlit(), use lowercase by default, add string case converstions

This commit is contained in:
Dominic Höglinger 2026-04-25 12:04:15 +02:00
parent 4d9ce95f6f
commit af4239e198

View File

@ -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)