1 (** This is the user accessible static methods of the CP runtime system.
2 * These are the environment-independent ones. Others are in CP*.cp
3 * Note: the bodies of these procedures are dummies, this module is
4 * compiled with -special. The real code is in RTS.java or other.
5 *
6 * Version: 7 July 1999 (kjg).
7 * 20 February 2000 (kjg) Default target ...
8 * 4 July 2000 (kjg) Native types ...
9 * 4 August 2001 (syc,kjg) more methods...
10 * 2004 (kjg) vector support and globalization
11 *)
13 (* ============================================================ *)
32 (* ========================================================== *)
33 (* ============= Support for native exceptions ============== *)
34 (* ========================================================== *)
38 (** Abort execution with an error *)
40 (* ========================================================== *)
41 (* ============= Conversions FROM array of char ============= *)
42 (* ========================================================== *)
44 (** Parse array into a BOOLEAN TRUE/FALSE *)
47 (** Parse array into a BYTE integer *)
50 (** Parse array into a BYTE integer *)
53 (** Parse an array into a CP LONGINT *)
56 (** Parse an array into a CP LONGINT *)
59 (** Parse an array into a CP INTEGER *)
62 (** Parse an array into a CP INTEGER *)
65 (** Parse an array into a CP LONGINT *)
68 (** Parse an array into a CP LONGINT *)
71 (** Parse hexadecimal array into a BYTE integer *)
73 (* ------------------- Low-level String Conversions -------------------- *)
74 (* Three versions for different cultures. *Invar uses invariant culture *)
75 (* *Local uses current locale *)
76 (* StrToReal & RealToStr do not behave the same on JVM and CLR. *)
77 (* They is provided for compatability with versions < 1.3.1 *)
78 (* ------------------- Low-level String Conversions -------------------- *)
83 (** Parse array into an ieee double REAL *)
88 (** Parse array using invariant culture, into an ieee double REAL *)
93 (** Parse array using current locale, into an ieee double REAL *)
104 (** Parse array into a short REAL *)
106 (* ========================================================== *)
107 (* ============== Operations on Native Types ============== *)
108 (* ========================================================== *)
112 (* ========================================================== *)
113 (* ============== Operations on Native Strings ============== *)
114 (* ========================================================== *)
117 (* Get the character at zero-based index idx *)
120 (* Get the length of the native string *)
122 (* ========================================================== *)
123 (* ============== Conversions TO array of char ============== *)
124 (* ========================================================== *)
126 (** Decode a CP REAL into an array *)
129 (** Decode a CP REAL into an array in invariant culture *)
132 (** Decode a CP REAL into an array in the current locale *)
137 (** Decode a CP SHORTREAL into an array *)
138 (* ========================================================== *)
141 (** Decode a CP INTEGER into an array *)
144 (** Decode a CP INTEGER into an array *)
147 (** Decode a CP INTEGER into an array *)
149 (* ========================================================== *)
150 (* ========== Casts with no representation change =========== *)
151 (* ========================================================== *)
153 (** Convert an ieee double into a longint with same bit pattern *)
156 (** Convert an ieee double into a longint with same bit pattern *)
159 (** Convert an ieee float into an int with same bit pattern *)
162 (** Convert an int into an ieee float with same bit pattern *)
165 (** Get hi-significant word of short *)
168 (** Get lo-significant word of short *)
171 (** Get hi-significant word of integer *)
174 (** Get lo-significant word of integer *)
177 (** Get hi-significant word of long integer *)
180 (** Get lo-significant word of long integer *)
182 (* ========================================================== *)
183 (* ============= Various utility procedures ================= *)
184 (* ========================================================== *)
186 (** Get time in milliseconds *)
189 (** Get a date string in some native format *)
192 (** Write class name to standard output *)
194 (* ============================================================ *)