summaryrefslogtreecommitdiffstats
path: root/library/word.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-02-01 15:32:19 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-02-01 15:32:19 (GMT)
commit6f1c949a42ef60692258e34a5dbb8b920d76be23 (patch)
tree0f9df16696586fa30ee3529c7c4cc598a6318a76 /library/word.tcl
parente566dc080bf933404305587e4290769e7e620460 (diff)
parent1153a9400bcdb471e1475c0e40dcf722dd5afc1a (diff)
downloadtcl-6f1c949a42ef60692258e34a5dbb8b920d76be23.zip
tcl-6f1c949a42ef60692258e34a5dbb8b920d76be23.tar.gz
tcl-6f1c949a42ef60692258e34a5dbb8b920d76be23.tar.bz2
merge trunk
Diffstat (limited to 'library/word.tcl')
-rw-r--r--library/word.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/word.tcl b/library/word.tcl
index 16a4638..b8f34a5 100644
--- a/library/word.tcl
+++ b/library/word.tcl
@@ -67,7 +67,7 @@ namespace eval ::tcl {
proc tcl_wordBreakAfter {str start} {
variable ::tcl::WordBreakRE
set result {-1 -1}
- regexp -indices -start $start $WordBreakRE(after) $str result
+ regexp -indices -start $start -- $WordBreakRE(after) $str result
return [lindex $result 1]
}
@@ -85,7 +85,7 @@ proc tcl_wordBreakAfter {str start} {
proc tcl_wordBreakBefore {str start} {
variable ::tcl::WordBreakRE
set result {-1 -1}
- regexp -indices $WordBreakRE(before) [string range $str 0 $start] result
+ regexp -indices -- $WordBreakRE(before) [string range $str 0 $start] result
return [lindex $result 1]
}
@@ -104,7 +104,7 @@ proc tcl_wordBreakBefore {str start} {
proc tcl_endOfWord {str start} {
variable ::tcl::WordBreakRE
set result {-1 -1}
- regexp -indices -start $start $WordBreakRE(end) $str result
+ regexp -indices -start $start -- $WordBreakRE(end) $str result
return [lindex $result 1]
}
@@ -122,7 +122,7 @@ proc tcl_endOfWord {str start} {
proc tcl_startOfNextWord {str start} {
variable ::tcl::WordBreakRE
set result {-1 -1}
- regexp -indices -start $start $WordBreakRE(next) $str result
+ regexp -indices -start $start -- $WordBreakRE(next) $str result
return [lindex $result 1]
}
@@ -138,7 +138,7 @@ proc tcl_startOfNextWord {str start} {
proc tcl_startOfPreviousWord {str start} {
variable ::tcl::WordBreakRE
set word {-1 -1}
- regexp -indices $WordBreakRE(previous) [string range $str 0 $start-1] \
+ regexp -indices -- $WordBreakRE(previous) [string range $str 0 $start-1] \
result word
return [lindex $word 0]
}