navinsubramani / LabVIEW-Script-Language

Developing a platform to develop scripts, compile and execute it in the LabVIEW development or run time environment
MIT License
7 stars 2 forks source link

String operations syntax defining #8

Closed pranay001 closed 4 years ago

pranay001 commented 4 years ago

Please comment your opinion on the below syntax formats and also add if few other functionalities are required.

String functions:

String length. Syntax: strlen($string$)

Concat string Syntax: concat($a$,$b$)

Substring Syntax: substr($string$,$offset$,$length$)

Toupper case Syntax: toupper($string$)

Tolower case Syntax: tolower($string$)

Is empty? Syntax: isempty($string$)

navinsubramani commented 4 years ago

The above looks good. Please also add the following functionalities,

Anything to string, str($anything$)

String Concatenation, $string1$ + $string2$

pranay001 commented 4 years ago

I added all the functions but I would like to check from you whether shall we have str($anything$) function in string operations or as a part of typecast operations

navinsubramani commented 4 years ago

Make sense to add them to a typecast library for now

navinsubramani commented 4 years ago

This is kept in String Operations since there is no typecast library