Skip to content

Commit c20643c

Browse files
committed
[docs] Document ordbaseat op in docs/ops.markdown
1 parent 576d78e commit c20643c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/ops.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
* [lc](#lc)
102102
* [normalizecodes](#normalizecodes)
103103
* [ord](#ord)
104+
* [ordbaseat](#ordbaseat)
104105
* [radix](#radix)
105106
* [replace](#replace)
106107
* [rindex](#rindex)
@@ -1046,6 +1047,13 @@ at the `$i`th character, if it's specified.
10461047

10471048
`ord` is converted to these internal opcodes by the compiler.
10481049

1050+
## ordbaseat
1051+
`ordbaseat(str $str, int $pos)`
1052+
1053+
Returns the Unicode codepoint which is the base (non extend/prepend character
1054+
at that position). If it is a degenerate, and contains no base character,
1055+
it then returns the first codepoint in that grapheme.
1056+
10491057
## radix
10501058
* `radix(int $radix, String $str, int $pos, int $flags)`
10511059
* `radix_I(int $radix, String $str, int $pos, int $flags, Mu:T $type)`

0 commit comments

Comments
 (0)