Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.aspect.build/llms.txt

Use this file to discover all available pages before exploring further.

Documentation for @bazel_lib@v3.2.0 View source
Utilities for strings

Function: chr

returns a string encoding a codepoint chr returns a string that encodes the single Unicode code point whose value is specified by the integer i

Parameters

i
name
required
position of the character
Returns: unicode string of the position

Function: ord

returns the codepoint of a character ord(c) returns the integer value of the sole Unicode code point encoded by the string c. If c does not encode exactly one Unicode code point, ord fails. Each invalid code within the string is treated as if it encodes the Unicode replacement character, U+FFFD.

Parameters

c
name
required
character whose codepoint to be returned.
Returns: codepoint of c argument.

Function: hex

Format integer to hexadecimal representation

Parameters

number
name
required
number to format
Returns: hexadecimal representation of the number argument

Function: split_args

Split a string into a list space separated arguments Unlike the naive .split(" "), this function takes quoted strings and escapes into account.

Parameters

s
name
required
input string
Returns: list of strings with each an argument found in the input string