Update grammar, expand CRC32 function #2
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user