Re: strop module and whitespace

Martin Green (martin.a.green@hydro.on.ca)
Thu, 8 Jul 1993 09:44:10 -0400

On July 8 at 04:31:47 you (Guido.van.Rossum@cwi.nl) wrote:
>
> A possibility, if people think this is worth it, would be to somehow
> find out which characters the C library's "isspace()" function
> considers whitespace and use this definition throughout.
>
> Feedback, please!

The following program returns 9, 10, 11, 12, 13, 32 with SunOS 4.1.1.
I would suggest using these as defaults in a string of whitespace
characters that users can reassign if they want different behaviour.

========================================================================
#include <stdio.h>
#include <ctype.h>
main()
{
int i;
for (i = 0; i < 256; i++) {
if (isspace(i)) printf("%d\n", i);
}
}
========================================================================

Martin Green Net : green@rd.hydro.on.ca
Ontario Hydro Research Division Tel : (416) 207-5745
800 Kipling Ave, KR260 FAX : (416) 207-5622
Toronto, Ontario, CANADA, M8Z5S4