| 1 |
/* |
| 2 |
* tclStringTrim.h -- |
| 3 |
* |
| 4 |
* This file contains the definition of what characters are to be trimmed |
| 5 |
* from a string by [string trim] by default. It's only needed by Tcl's |
| 6 |
* implementation; it does not form a public or private API at all. |
| 7 |
* |
| 8 |
* Copyright (c) 1987-1993 The Regents of the University of California. |
| 9 |
* Copyright (c) 1994-1997 Sun Microsystems, Inc. |
| 10 |
* Copyright (c) 1998-2000 Scriptics Corporation. |
| 11 |
* Copyright (c) 2002 ActiveState Corporation. |
| 12 |
* Copyright (c) 2003-2013 Donal K. Fellows. |
| 13 |
* |
| 14 |
* See the file "license.terms" for information on usage and redistribution of |
| 15 |
* this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 16 |
*/ |
| 17 |
|
| 18 |
#ifndef TCL_STRING_TRIM_H |
| 19 |
#define TCL_STRING_TRIM_H |
| 20 |
|
| 21 |
/* |
| 22 |
* Default set of characters to trim in [string trim] and friends. This is a |
| 23 |
* UTF-8 literal string containing all Unicode space characters. [TIP #413] |
| 24 |
*/ |
| 25 |
|
| 26 |
MODULE_SCOPE const char tclDefaultTrimSet[]; |
| 27 |
|
| 28 |
/* |
| 29 |
* The whitespace trimming set used when [concat]enating. This is a subset of |
| 30 |
* the above, and deliberately so. |
| 31 |
* |
| 32 |
* TODO: Find a reasonable way to guarantee in sync with TclIsSpaceProc() |
| 33 |
*/ |
| 34 |
|
| 35 |
#define CONCAT_TRIM_SET " \f\v\r\t\n" |
| 36 |
|
| 37 |
#endif /* TCL_STRING_TRIM_H */ |
| 38 |
|
| 39 |
/* |
| 40 |
* Local Variables: |
| 41 |
* mode: c |
| 42 |
* c-basic-offset: 4 |
| 43 |
* fill-column: 78 |
| 44 |
* End: |
| 45 |
*/ |