Back to Blog
The StrUpper function does the opposite of StrLower and converts the characters in a string to uppercase. The StrLower function converts the characters of a string to lowercase if they are in uppercase. Converting characters to upper and lower case Release memory previously allocated // under the lines ps1, ps2, ps3 Add string ps2 to string ps3, // ps3 string max 5 characters Add the string ps1 to the resulting string, // string ps3 - 3 characters Reserve 10 characters (20 bytes) of memory The function returns a pointer to the resulting string.īegin // Function StrLCat // 1. MaxLen – maximum length of the resulting string.This is the resulting string to which the Source string is added For the PAnsiChar and PWideChar types, the function declarations are as follows function StrLCat(Dest: PAnsiChar const Source: PAnsiChar MaxLen: Cardinal): PAnsiChar įunction StrLCat(Dest: PWideChar const Source: PWideChar MaxLen: Cardinal): PWideChar Using the StrLCat function, you can add one string to another with a constraint on the resulting string. Add a string to the end of another string with a given limit on the length of the resulting string Ps1 : PAnsiChar // Declaring variables of type PAnsiCharīegin // 1.
0 Comments
Read More
Leave a Reply. |