You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1844 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
La fonction Str.group_beginning est documentée comme levant l'exception
Not_found:
val group_beginning : int -> int
group_beginning n returns the position of the first character of the
substring that was matched by the nth group of the regular expression.
Raises Not_found if the nth group of the regular expression was not matched.
Au cours d'une exécution, je vois apparaître le message suivant:
D'apres une rapide lecture du source, Invalid_argument signifie que
l'expression reguliere n'avait pas de n-ieme groupe, alors que
Not_found signifie que le n-ieme groupe n'a pas matche.
Je change la doc.
Original bug ID: 1844
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Valérie Ménissier-Morain
Version: 3-07beta2
OS: Linux/RedHat 7.2
Submission from: realarith.lip6.fr (132.227.66.34)
La fonction Str.group_beginning est documentée comme levant l'exception
Not_found:
val group_beginning : int -> int
group_beginning n returns the position of the first character of the
substring that was matched by the nth group of the regular expression.
Raises Not_found if the nth group of the regular expression was not matched.
Au cours d'une exécution, je vois apparaître le message suivant:
Fatal error: exception Invalid_argument("Str.group_beginning")
alors que je rattrape effectivement l'exception Not_found.
Est-ce un bug, un défaut de documentation ou bien ai-je compris quelque chose de
travers?
Valérie.
P.S.: si on peut éviter d'avoir besoin du code et de l'environnement
d'exécution, vue la taille, ce serait bien!
The text was updated successfully, but these errors were encountered: