// 2025-02-07 0.53.18 https://cangjie-lang.cn/ // 2025-11-05 0.22.17 https://developer.huawei.com/consumer/cn/cangjie //! keywords =========================================================== abstract as break case catch class const continue do else enum extend false finally for from foreign func if import in init inout interface is let macro main match mut open operator override package private prop protected public quote redef return spawn static struct super synchronized this throw true try type unsafe var where while // Contextual Keyword get sealed set //! types =========================================================== Nothing This VArray // std.core types Byte Int UInt Int8 Int16 Int32 Int64 IntNative UInt8 UInt16 UInt32 UInt64 UIntNative Float16 Float32 Float64 Bool Rune Unit CPointer CString //! macro =========================================================== @sourcePackage() @sourceFile() @sourceLine() @Intrinsic @FastNative @When @C @CallingConv //! annotation =========================================================== @Annotation //! api =========================================================== package std.core { func alignOf(): UIntNative where T <: CType func eprint(str: String, flush!: Bool = true): Unit func eprintln(str: String): Unit func ifNone(o: Option, action: () -> Unit): Unit func ifSome(o: Option, action: (T) -> Unit): Unit func print(arg: T, flush!: Bool = false): Unit where T <: ToString func println(arg: T): Unit where T <: ToString func refEq(a: Object, b: Object): Bool func sizeOf(): UIntNative where T <: CType func zeroValue(): T interface Any interface CType interface Collection <: Iterable interface Comparable <: Equatable & Less & Greater & LessOrEqual & GreaterOrEqual interface Countable interface Equal interface Equatable interface Hashable interface Hasher interface Iterable interface Resource interface ThreadContext interface ToString class ArrayIterator <: Iterator class Box class Future abstract class Iterator <: Iterable open class Object <: Any class RangeIterator <: Iterator where T <: Countable & Comparable & Equatable class StringBuilder <: ToString class Thread class ThreadLocal enum Endian enum Option enum Ordering struct Array struct CPointerHandle where T <: CType struct CPointerResource <: Resource where T <: CType struct CStringResource <: Resource struct DefaultHasher <: Hasher struct Range <: Iterable where T <: Countable & Comparable & Equatable struct String <: Collection & Equatable & Comparable & Hashable & ToString open class Error <: ToString open class Exception <: ToString } package std.collection { func all(predicate: (T) -> Bool): (Iterable) -> Bool func any(predicate: (T) -> Bool): (Iterable) -> Bool interface Map <: Collection<(K, V)> where K <: Equatable interface Set <: Collection where T <: Equatable class ArrayList <: Collection class HashMap <: Map where K <: Hashable & Equatable class HashSet <: Set where T <: Hashable & Equatable class LinkedList <: Collection class TreeMap <: Map where K <: Comparable } package std.fs { class Directory <: Iterable class File <: Resource & IOStream & Seekable enum OpenOption struct FileDescriptor struct FileInfo <: Equatable struct Path <: Equatable & Hashable & ToString } package std.io { interface IOStream <: InputStream & OutputStream interface InputStream interface OutputStream interface Seekable class BufferedInputStream <: InputStream where T <: InputStream class BufferedOutputStream <: OutputStream where T <: OutputStream class ByteArrayStream <: IOStream & Seekable class StringReader where T <: InputStream class StringWriter where T <: OutputStream enum SeekPosition class IOException <: Exception }