| Anonymous | Login | Signup for a new account | 2013-05-21 22:03 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0004019 | OCaml | OCaml documentation | public | 2006-05-04 19:36 | 2012-09-11 16:45 | |||
| Reporter | jrouquie | |||||||
| Assigned To | ||||||||
| Priority | normal | Severity | text | Reproducibility | always | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 3.09.0 | |||||||
| Target Version | 4.00.1+dev | Fixed in Version | ||||||
| Summary | 0004019: Str.matched_string also takes into account the matching occuring in Str.global_substitute | |||||||
| Description | The documentation of Str.matched_string says "matched_string s returns the substring of s that was matched by the latest Str.string_match, Str.search_forward or Str.search_backward." It should says "matched_string s returns the substring of s that was matched by the latest Str.string_match, Str.search_forward, Str.search_backward or Str.global_substitute." Other functions of the Str module are probably to be added to the list. Test: #load "str.cma" let r = Str.regexp "\\([a-z]\\)\\([A-Z]\\)" let subst line = let s = Str.matched_string line in assert (String.length s = 2); Printf.sprintf "%c_%c" s.[0] (Char.lowercase s.[1]) ;; Str.global_substitute r subst "camlCase and caml_style" produces: - : string = "caml_case and caml_style" | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Notes |
|
|
(0008070) doligez (manager) 2012-09-11 16:45 |
Fixed in 4.00.1+dev (r 12921) and trunk (r 12923). |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2006-05-04 19:36 | jrouquie | New Issue | |
| 2006-08-29 18:02 | doligez | Status | new => acknowledged |
| 2012-09-06 16:44 | doligez | Target Version | => 4.00.1+dev |
| 2012-09-11 16:45 | doligez | Note Added: 0008070 | |
| 2012-09-11 16:45 | doligez | Status | acknowledged => closed |
| 2012-09-11 16:45 | doligez | Resolution | open => fixed |
| Copyright © 2000 - 2011 MantisBT Group |