Index of values


B
backtrack [Ulexing]
Ulexing.backtrack lexbuf returns the value stored in the internal slot of the buffer, and performs backtracking (the current position is set to the value of the backtrack position).

C
create [Ulexing]
Create a generic lexer buffer.

F
from_int_array [Ulexing]
Create a lexbuf from an array of Unicode code points.
from_latin1_channel [Ulexing]
Create a lexbuf from a Latin1 encoded input channel.
from_latin1_stream [Ulexing]
Create a lexbuf from a Latin1 encoded stream (ie a stream of Unicode code points in the range 0..255)
from_latin1_string [Ulexing]
Create a lexbuf from a Latin1 encoded string.
from_stream [Ulexing]
Create a lexbuf from a stream of Unicode code points.
from_utf8_channel [Ulexing]
Create a lexbuf from a UTF-8 encoded input channel.
from_utf8_stream [Ulexing]
Create a lexbuf from a UTF-8 encoded stream.
from_utf8_string [Ulexing]
Create a lexbuf from a UTF-8 encoded string.
from_var_enc_channel [Ulexing]
Same as Ulexing.from_var_enc_stream with a channel as input.
from_var_enc_stream [Ulexing]
Create a lexbuf from a stream whose encoding is subject to change during lexing.
from_var_enc_string [Ulexing]
Same as Ulexing.from_var_enc_stream with a string as input.

G
get_buf [Ulexing]
Direct access to the internal buffer.
get_pos [Ulexing]
Direct access to the current position (end of lexeme) in the internal buffer.
get_start [Ulexing]
Direct access to the starting position of the lexeme in the internal buffer.

L
latin1_lexeme [Ulexing]
As Ulexing.lexeme with a result encoded in Latin1.
latin1_lexeme_char [Ulexing]
As Ulexing.lexeme_char with a result encoded in Latin1.
latin1_sub_lexeme [Ulexing]
As Ulexing.sub_lexeme with a result encoded in Latin1.
lexeme [Ulexing]
Ulexing.lexeme lexbuf returns the string matched by the regular expression as an array of Unicode code point.
lexeme_char [Ulexing]
Ulexing.lexeme_char lexbuf pos returns code point number pos in the matched string.
lexeme_end [Ulexing]
Ulexing.lexeme_end lexbuf returns the offset in the input stream of the character following the last code point of the matched string.
lexeme_length [Ulexing]
Ulexing.loc lexbuf returns the difference (Ulexing.lexeme_end lexbuf) - (Ulexing.lexeme_start lexbuf), that is, the length (in code points) of the matched string.
lexeme_start [Ulexing]
Ulexing.lexeme_start lexbuf returns the offset in the input stream of the first code point of the matched string.
loc [Ulexing]
Ulexing.loc lexbuf returns the pair (Ulexing.lexeme_start lexbuf,Ulexing.lexeme_end lexbuf).

M
mark [Ulexing]
Ulexing.mark lexbuf i stores the integer i in the internal slot.

N
next [Ulexing]
Ulexing.next lexbuf next extracts the next code point from the lexer buffer and increments to current position.

R
rollback [Ulexing]
Ulexing.rollback lexbuf puts lexbuf back in its configuration before the last lexeme was matched.

S
start [Ulexing]
Ulexing.start lexbuf informs the lexer buffer that any code points until the current position can be discarded.
sub_lexeme [Ulexing]
Ulexing.lexeme lexbuf pos len returns a substring of the string matched by the regular expression as an array of Unicode code point.

U
utf8_lexeme [Ulexing]
As Ulexing.lexeme with a result encoded in UTF-8.
utf8_sub_lexeme [Ulexing]
As Ulexing.sub_lexeme with a result encoded in UTF-8.