Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
string function documentation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-09-15 (11:53)
From: Steve Gardner <scg@c...>
Subject: string function documentation

The following behaviour is clearly correct, but I think it is

Various functions in the String and Str modules accept
"String.length s" as a valid character index for "s". For example,

  Str.string_match regexp s (String.length s)

does not raise an Invalid_argument exception, but returns true or
false depending on whether regexp allows an empty string.

As mentioned above, I see that this is correct.

Should the documentation should be changed to mention this behaviour?



Steve Gardner               Centre for Information Systems Engineering                   National Physical Laboratory
Tel: +44 20 8943 7060              Teddington, Middlesex, TW11 0LW, UK
Fax: +44 20 8977 7091         

"The contents of the above message are my views alone and should not
be taken as representing the views held by NPL Management Ltd."