diff options
author | hobbs <hobbs@noemail.net> | 2000-01-21 02:25:37 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-01-21 02:25:37 (GMT) |
commit | 3e8a9638e9b50260a6022fed6fa31db9f5b9abf1 (patch) | |
tree | 87a296cb69b62c9180930e696e6176f98d00e051 /library | |
parent | a2f64449e64de862c9657ac5534b2283a1ae7b32 (diff) | |
download | tcl-3e8a9638e9b50260a6022fed6fa31db9f5b9abf1.zip tcl-3e8a9638e9b50260a6022fed6fa31db9f5b9abf1.tar.gz tcl-3e8a9638e9b50260a6022fed6fa31db9f5b9abf1.tar.bz2 |
* library/word.tcl: changed tcl_(non)wordchars settings to use
new unicode regexp char class escapes instead of char sequences
FossilOrigin-Name: 0ff0bf210058e7ebefe43fdc1ad0530ef751f0f1
Diffstat (limited to 'library')
-rw-r--r-- | library/word.tcl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/word.tcl b/library/word.tcl index d0d8a60..7d85de0 100644 --- a/library/word.tcl +++ b/library/word.tcl @@ -10,19 +10,19 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: word.tcl,v 1.5 1999/08/19 02:59:40 hobbs Exp $ +# RCS: @(#) $Id: word.tcl,v 1.6 2000/01/21 02:25:38 hobbs Exp $ # The following variables are used to determine which characters are # interpreted as white space. if {[string equal $tcl_platform(platform) "windows"]} { - # Windows style - any but space, tab, or newline - set tcl_wordchars "\[^ \t\n\]" - set tcl_nonwordchars "\[ \t\n\]" + # Windows style - any but a unicode space char + set tcl_wordchars "\\S" + set tcl_nonwordchars "\\s" } else { - # Motif style - any number, letter, or underscore - set tcl_wordchars {[a-zA-Z0-9_]} - set tcl_nonwordchars {[^a-zA-Z0-9_]} + # Motif style - any unicode word char (number, letter, or underscore) + set tcl_wordchars "\\w" + set tcl_nonwordchars "\\W" } # tcl_wordBreakAfter -- |