init backend

This commit is contained in:
2026-02-04 21:11:51 +01:00
parent 537d49e797
commit b73fd8eb05
31 changed files with 673 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
namespace AipsCore.Utility.Text;
public static class Charset
{
public static char[] GetNumericCharset()
{
var charset = new List<char>();
// 09
for (char c = '0'; c <= '9'; c++)
charset.Add(c);
return charset.ToArray();
}
public static char[] GetLettersCharset()
{
var charset = new List<char>();
// az
for (char c = 'a'; c <= 'z'; c++)
charset.Add(c);
// AZ
for (char c = 'A'; c <= 'Z'; c++)
charset.Add(c);
return charset.ToArray();
}
public static char[] GetAlphanumericCharset()
{
var lettersCharset = GetLettersCharset();
var numericCharset = GetNumericCharset();
char[] alphanumericCharset = [..numericCharset, ..lettersCharset];
return alphanumericCharset;
}
}