mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
30 lines
844 B
C#
30 lines
844 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Cosmos.IL2CPU.Plugs;
|
|
|
|
namespace Cosmos.IL2CPU.IL.CustomImplementations.System {
|
|
[Plug(Target = typeof(char))]
|
|
public static class CharImpl {
|
|
public static void Cctor() {
|
|
//
|
|
}
|
|
|
|
//[PlugMethod(Signature = "System_String___System_Char_ToString____")]
|
|
public static string ToString(ref char aThis) {
|
|
char[] xResult = new char[1];
|
|
xResult[0] = aThis;
|
|
return new String(xResult);
|
|
} // System_String__System_Char_ToString__
|
|
|
|
public static char ToUpper(char aThis) {
|
|
// todo: properly implement Char.ToUpper()
|
|
return aThis;
|
|
}
|
|
|
|
public static bool IsWhiteSpace(char aChar) {
|
|
return aChar == ' ' || aChar == '\t';
|
|
}
|
|
}
|
|
}
|