tclStringTrim.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #ifndef TCL_STRING_TRIM_H
  18. #define TCL_STRING_TRIM_H
  19. /*
  20. * Default set of characters to trim in [string trim] and friends. This is a
  21. * UTF-8 literal string containing all Unicode space characters. [TIP #413]
  22. */
  23. MODULE_SCOPE const char tclDefaultTrimSet[];
  24. /*
  25. * The whitespace trimming set used when [concat]enating. This is a subset of
  26. * the above, and deliberately so.
  27. *
  28. * TODO: Find a reasonable way to guarantee in sync with TclIsSpaceProc()
  29. */
  30. #define CONCAT_TRIM_SET " \f\v\r\t\n"
  31. #endif /* TCL_STRING_TRIM_H */
  32. /*
  33. * Local Variables:
  34. * mode: c
  35. * c-basic-offset: 4
  36. * fill-column: 78
  37. * End:
  38. */