From 37da2899f40661e3e9631e497da8dc59b971cbd0 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Fri, 22 Dec 2006 17:07:39 +0000 Subject: 20060303a --- appl/lib/tcl_strhash.b | 116 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 appl/lib/tcl_strhash.b (limited to 'appl/lib/tcl_strhash.b') diff --git a/appl/lib/tcl_strhash.b b/appl/lib/tcl_strhash.b new file mode 100644 index 00000000..c273ef61 --- /dev/null +++ b/appl/lib/tcl_strhash.b @@ -0,0 +1,116 @@ +implement Str_Hashtab; + +include "sys.m"; +include "draw.m"; +include "tk.m"; +include "tcl.m"; +include "tcllib.m"; +include "utils.m"; + + +hashasu(key : string,n : int): int{ + i, h : int; + h=0; + i=0; + while(i t}; + return ref h; +} + +Hash.dump(h : self ref Hash) : string { + retval :string; + for (i:=0;i