comparison scripts/strings/findstr.m @ 3759:110bc441a954

[project @ 2000-12-16 01:25:12 by jwe]
author jwe
date Sat, 16 Dec 2000 01:25:13 +0000
parents 434790acb067
children e2cbe8e31e06
comparison
equal deleted inserted replaced
3758:a816be1d1626 3759:110bc441a954
58 s = toascii (s); 58 s = toascii (s);
59 t = toascii (t); 59 t = toascii (t);
60 60
61 l_t = length (t); 61 l_t = length (t);
62 62
63 if (l_t < 1)
64 v = [];
65 return;
66 endif
67
63 ind = 1 : l_t; 68 ind = 1 : l_t;
64 limit = length (s) - l_t + 1; 69 limit = length (s) - l_t + 1;
65 v = zeros (1, limit); 70 v = zeros (1, limit);
66 i = 0; 71 i = 0;
67 72