@@ -892,14 +892,24 @@ <h3 class="Ss" id="String_expressions"><a class="permalink" href="#String_expres
892892 < var class ="Ar "> char</ var > < span class ="No "> with the current
893893 charmap.</ span > </ td >
894894 </ tr >
895+ < tr id ="CHARVAL ">
896+ < td > < a class ="permalink " href ="#CHARVAL "> < code class ="Fn "> CHARVAL</ code > </ a > (< var class ="Fa "> char</ var > ,
897+ < var class ="Fa "> idx</ var > )</ td >
898+ < td > Returns the value at < var class ="Ar "> idx</ var > < span class ="No "> of the
899+ charmap entry for</ span > < var class ="Ar "> char</ var > .</ td >
900+ </ tr >
895901</ table >
896- < p class ="Pp "> Note that the first character of a string is at index 0, and the
897- last is at index -1.</ p >
902+ < p class ="Pp "> Note that indexes count starting from 0 at the beginning, or from
903+ -1 at the end. The characters of a string are counted by
904+ ‘< code class ="Li "> STRLEN</ code > ’; the charmap entries of a
905+ string are counted by ‘< code class ="Li "> CHARLEN</ code > ’; and
906+ the values of a charmap entry are counted by
907+ ‘< code class ="Li "> CHARSIZE</ code > ’.</ p >
898908< p class ="Pp " id ="position "> The following legacy functions are similar to other
899909 functions that operate on string expressions, but for historical reasons,
900- they count characters starting from
910+ they count starting from
901911 < a class ="permalink " href ="#position "> < i class ="Em "> position 1</ i > </ a > , not
902- from index 0! (Position -1 still counts from the last character .)</ p >
912+ from index 0! (Position -1 still counts from the end .)</ p >
903913< table class ="Bl-column ">
904914 < tr id ="Name~5 ">
905915 < td > < a class ="permalink " href ="#Name~5 "> < b class ="Sy "> Name</ b > </ a > </ td >
0 commit comments