Platform-specific package target: darwin_arm64

Collection Info

View Source
Collection
core
Path
sys/darwin/CoreFoundation
Entries
26

Source Files

Types

14

Procedures

11

ReleaseString #

Source
ReleaseString :: proc(theString: String) {…}

Releases a Core Foundation string.

StringCopyToOdinString #

Source
StringCopyToOdinString :: proc(theString: String, allocator := context.allocator) -> (str: string, ok: bool) #optional_ok {…}

StringGetBytes #

Source
StringGetBytes :: proc "c" (
	thestring:                String, 
	range:                    Range, 
	encoding:                 StringEncoding, 
	lossByte:                 u8, 
	isExternalRepresentation: b8, 
	buffer:                   [^]u8, 
	maxBufLen:                Index, 
	usedBufLen:               ^Index, 
) -> Index ---

Fetches a range of the characters from a string into a byte buffer after converting the characters to a specified encoding.

StringGetCString #

Source
StringGetCString :: proc "c" (theString: String, buffer: [^]u8, bufferSize: Index, encoding: StringEncoding) -> b8 ---

Copies the character contents of a string to a local C string buffer after converting the characters to a given encoding.

StringGetLength #

Source
StringGetLength :: proc "c" (theString: String) -> Index ---

Returns the number (in terms of UTF-16 code pairs) of Unicode characters in a string.

StringGetMaximumSizeForEncoding #

Source
StringGetMaximumSizeForEncoding :: proc "c" (length: Index, encoding: StringEncoding) -> Index ---

Returns the maximum number of bytes a string of a specified length (in Unicode characters) will take up if encoded in a specified encoding.

StringMakeConstantString #

Source
@(link_name="__CFStringMakeConstantString")
StringMakeConstantString :: proc "c" (#const c: cstring) -> String ---

Procedure Groups

1