OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
2.0 KiB

  1. Sun Jan 28 21:08:45 EET 2007 Ville Laurikari <vl@iki.fi>
  2. * Fixed regoff_t documentation for wide characters.
  3. The documentation erroneously claimed that offsets are always given in
  4. bytes (they are bytes in byte and multibyte strings, but wchar_t
  5. offsets in wchar_t strings).
  6. Thanks to Gregory Sharp for pointing this out.
  7. diff -rN -u old-stable/doc/tre-api.html new-stable/doc/tre-api.html
  8. --- old-stable/doc/tre-api.html 2007-11-04 20:25:00.000000000 +0200
  9. +++ new-stable/doc/tre-api.html 2007-11-04 20:25:00.000000000 +0200
  10. @@ -323,22 +323,21 @@
  11. <dl>
  12. <dt><tt><font class="type">regoff_t</font> <font
  13. class="arg">rm_so</font></tt></dt>
  14. -<dd>Byte offset from start of <tt><font class="arg">string</font></tt>
  15. -to start of substring. </dd>
  16. +<dd>Offset from start of <tt><font class="arg">string</font></tt> to start of
  17. +substring. </dd>
  18. <dt><tt><font class="type">regoff_t</font> <font
  19. class="arg">rm_eo</font></tt></dt>
  20. -<dd>Byte offset from start of <tt><font class="arg">string</font></tt>
  21. -to the first character after the substring. </dd>
  22. +<dd>Offset from start of <tt><font class="arg">string</font></tt> to the first
  23. +character after the substring. </dd>
  24. </dl>
  25. </blockquote>
  26. <p>
  27. -The length of a submatch in bytes can be computed by subtracting
  28. -<code>rm_eo</code> and <code>rm_so</code>.
  29. -If a parenthesized subexpression did not participate in a match, the
  30. -<code>rm_so</code> and <code>rm_eo</code> fields for the corresponding
  31. -<code>pmatch</code> element are set to <code>-1</code>.
  32. -When a multibyte character set is in effect, the submatch offsets are
  33. +The length of a submatch can be computed by subtracting <code>rm_eo</code> and
  34. +<code>rm_so</code>. If a parenthesized subexpression did not participate in a
  35. +match, the <code>rm_so</code> and <code>rm_eo</code> fields for the
  36. +corresponding <code>pmatch</code> element are set to <code>-1</code>. Note
  37. +that when a multibyte character set is in effect, the submatch offsets are
  38. given as byte offsets, not character offsets.
  39. </p>