Ejemplo n.º 1
0
		public CGTextConst(TextValue value) {
			this.value = value;
			this.index = TextValue.GetIndex(value.value);
		}
Ejemplo n.º 2
0
		public TextConst(String s) { value = TextValue.MakeInterned(s); }
Ejemplo n.º 3
0
		public readonly TextValue value; // Non-null

		public QuoteCell(String s) {
			Debug.Assert(s != null);
			value = TextValue.Make(s); // No interning
		}
Ejemplo n.º 4
0
		private QuoteCell(QuoteCell cell) { value = cell.value; }
Ejemplo n.º 5
0
		public static char ToNakedChar(TextValue v) { return v.value.Length >= 1 ? v.value[0] : '\0'; }
Ejemplo n.º 6
0
		private TextCell(TextCell cell) { this.value = cell.value; }
Ejemplo n.º 7
0
 public static char ToNakedChar(TextValue v)
 {
     return(v.value.Length >= 1 ? v.value[0] : '\0');
 }
Ejemplo n.º 8
0
        public static String ToString(Value v)
        {
            TextValue tv = v as TextValue;

            return(tv != null ? tv.value : null);
        }
Ejemplo n.º 9
0
        public static Object ToChar(Value v)
        {
            TextValue tv = v as TextValue;

            return(tv != null && tv.value.Length >= 1 ? (Object)tv.value[0] : null);            // causes boxing
        }