Show
Ignore:
Timestamp:
06/10/06 23:42:24 (3 years ago)
Author:
gnue
Message:

add BeginsWith, EndsWith global function

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/src/newt_core/NewtVM.c

    r45 r58  
    33983398    NewtDefGlobalFunc(NSSYM(StrEqual),      NsStrEqual,         2, "StrEqual(a, b)"); 
    33993399    NewtDefGlobalFunc(NSSYM(StrExactCompare),NsStrExactCompare, 2, "StrExactCompare(a, b)"); 
     3400    NewtDefGlobalFunc(NSSYM(BeginsWith),    NsBeginsWith,       2, "BeginsWith(str, sub)"); 
     3401    NewtDefGlobalFunc(NSSYM(EndsWith),      NsEndsWith,         2, "EndsWith(str, sub)"); 
    34003402    NewtDefGlobalFunc(NSSYM(SPrintObject),  NsSPrintObject,     1, "SPrintObject(obj)"); 
    34013403    NewtDefGlobalFunc(NSSYM(SymbolCompareLex),  NsSymbolCompareLex, 2, "SymbolCompareLex(symbol1, symbol2)");