Sun Jan 28 21:08:45 EET 2007 Ville Laurikari * Fixed regoff_t documentation for wide characters. The documentation erroneously claimed that offsets are always given in bytes (they are bytes in byte and multibyte strings, but wchar_t offsets in wchar_t strings). Thanks to Gregory Sharp for pointing this out. diff -rN -u old-stable/doc/tre-api.html new-stable/doc/tre-api.html --- old-stable/doc/tre-api.html 2007-11-04 20:25:00.000000000 +0200 +++ new-stable/doc/tre-api.html 2007-11-04 20:25:00.000000000 +0200 @@ -323,22 +323,21 @@
regoff_t rm_so
-
Byte offset from start of string -to start of substring.
+
Offset from start of string to start of +substring.
regoff_t rm_eo
-
Byte offset from start of string -to the first character after the substring.
+
Offset from start of string to the first +character after the substring.

-The length of a submatch in bytes can be computed by subtracting -rm_eo and rm_so. -If a parenthesized subexpression did not participate in a match, the -rm_so and rm_eo fields for the corresponding -pmatch element are set to -1. -When a multibyte character set is in effect, the submatch offsets are +The length of a submatch can be computed by subtracting rm_eo and +rm_so. If a parenthesized subexpression did not participate in a +match, the rm_so and rm_eo fields for the +corresponding pmatch element are set to -1. Note +that when a multibyte character set is in effect, the submatch offsets are given as byte offsets, not character offsets.