Página 1 de 1

Duas novas funções de comparação hb_LeftEq hb_LeftEqI

Enviado: 27 Jun 2014 11:05
por Itamar M. Lins Jr.
Sem precisar ligar o "SET EXACT ON"
Para substituir as comparações "ABC " = "ABC" //sem espaços
* src/rtl/left.c
+ added new function to replace "=" operator without the SET EXACT ambiguity
in its most common pattern of usage:
hb_LeftEq( <cString1>, <cString2> ) -> <lResult>
it's equivalent to this expression, but faster and shorter:
( Left( <cString1>, Len( <cString2> ) ) == <cString2> )
2014-01-22 03:09 UTC+0100 Viktor Szakáts
+ added hb_LeftEqI(). Same as hb_LeftEq() but case-insensitive.
hb_LeftEqI( <cString1>, <cString2> ) -> <lResult>
2014-02-04 13:38 UTC+0100 Viktor Szakáts
PS. Já tinha isso a mais tempo p/ quem usa o fork do Viktor, e agora foi copiado para o core principal.

Saudações,
Itamar M. Lins Jr.