I'm sorry, didn't know that Length is computed at construction time!!
I got 200 char long string A, 5 char long string B If I do
int Al = A.length;
int Bl = B.length;
and compare it -- all seems fine BUT If I do this few million times to calculate something, it's too expensive for the thing I need.
Much simpler and neater way would be some function that can compare two strings and tell me when the other is AT LEAST same as the other. Something like (compare_string_lengths(stringA,stringB) -> where string B must be at least as long (chars) as string A to return TRUE for function.
Yes, I know that the function wouldn't have any idea which string is shorter, but if lengths of the two strings would be counted in parallel so when one exceeds the other, function knows what to "answer".
Thanks for any hints.