Fix for literal string index
Created by: dvkt
Sorry for all the spam today :) While poking around vector index, I found what I think is a bug. The strings are being uppercased by the tokenizer, eg list:"bob"
is becoming LIST:"BOB"
. So you can't have both list:"bob" and list:"BOB", but you can still do list:x where x is "bob" to access a lowercase version. The standard says myVector:"hello" #Stores 1 in the subindex "hello" of myVector
so I think the bug is in the tokenizer doing the uppercasing, so that's what I changed.
Here's a program to demonstrate:
DATA:
v is text vector
z is number vector
x is text
PROCEDURE:
store "i" in x
store 1 in v:"i"
store 2 in v:"I"
display v:x crlf
display v:"i" crlf
display v:"I" crlf
Should see "1 1 2", not "2 2".