Octave string indexing
codeaft@codeaft:~$ octave
...
octave> codeaft = "Codeaft"
codeaft = Codeaft

octave> startsWith(codeaft, "KODING")
ans = 0

octave> startsWith(codeaft, "Koding")
ans = 1

octave> endsWith(codeaft, "ing")
ans = 0

octave> endsWith(codeaft, "dow")
ans = 1

octave> index(codeaft, "in")
ans = 4

octave> rindex(codeaft, "in")
ans = 8

octave> unicode_idx(codeaft)
ans =

    1    2    3    4    5    6    7    8    9   10   11   12

octave> strfind(codeaft, "WINDOW")
ans = [](0x0)

octave> strfind(codeaft, "window")
ans = 7
Comments and Reactions