summaryrefslogtreecommitdiffstats
path: root/library/word.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-07-23 04:12:46 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-07-23 04:12:46 (GMT)
commit7bc20e13c9c5f3706c7f50ae52ff329de08f8782 (patch)
tree4d2d9275d5243ea9e69abc3b325fce1875cda4bd /library/word.tcl
parent6f173b7f6fa783afed059c46c49241bebb0995b7 (diff)
downloadtcl-7bc20e13c9c5f3706c7f50ae52ff329de08f8782.zip
tcl-7bc20e13c9c5f3706c7f50ae52ff329de08f8782.tar.gz
tcl-7bc20e13c9c5f3706c7f50ae52ff329de08f8782.tar.bz2
* library/auto.tcl: Updates to the Tcl script library to make
* library/history.tcl: use of Tcl 8.4 features. Forward port of * library/init.tcl: appropriate portions of [Patch 1237755]. * library/package.tcl: * library/safe.tcl: * library/word.tcl:
Diffstat (limited to 'library/word.tcl')
-rw-r--r--library/word.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/word.tcl b/library/word.tcl
index edcb93a..05c3bab 100644
--- a/library/word.tcl
+++ b/library/word.tcl
@@ -10,12 +10,12 @@
# 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.7 2002/11/01 00:28:51 andreas_kupries Exp $
+# RCS: @(#) $Id: word.tcl,v 1.8 2005/07/23 04:12:49 dgp Exp $
# The following variables are used to determine which characters are
# interpreted as white space.
-if {[string equal $::tcl_platform(platform) "windows"]} {
+if {$::tcl_platform(platform) eq "windows"} {
# Windows style - any but a unicode space char
set tcl_wordchars "\\S"
set tcl_nonwordchars "\\s"
@@ -58,7 +58,7 @@ proc tcl_wordBreakAfter {str start} {
proc tcl_wordBreakBefore {str start} {
global tcl_nonwordchars tcl_wordchars
- if {[string equal $start end]} {
+ if {$start eq "end"} {
set start [string length $str]
}
if {[regexp -indices "^.*($tcl_wordchars$tcl_nonwordchars|$tcl_nonwordchars$tcl_wordchars)" [string range $str 0 $start] result]} {
@@ -120,7 +120,7 @@ proc tcl_startOfNextWord {str start} {
proc tcl_startOfPreviousWord {str start} {
global tcl_nonwordchars tcl_wordchars
- if {[string equal $start end]} {
+ if {$start eq "end"} {
set start [string length $str]
}
if {[regexp -indices \