TerSplitMbcs
Split an MBCS string into lead and tail bytes.
long TerSplitMbcs(string, tail, lead)
LPBYTE string; | The pointer to the mbcs string. |
LPBYTE tail; | The location to receive the tail bytes of the mbcs string. |
LPBYTE lead; | The location to the receive the lead bytes of the mbcs string. |
Description: This function can be used to split an mbcs (Multi-byte Character Set) into lead and tail bytes.
Return Value: This function returns the byte length of the lead or tail string. Both lead and tail byte strings have the same length. The single-byte characters within the mbcs strings are assigned NULL for the 'lead' byte.
Example:
dim tail as string*MAX_WIDTH
dim lead as string*MAX_WIDTH
dim len as integer
tail=space$(MAX_WIDTH) ' allocate space for the output
strings.
lead=space$(MAX_WIDTH)
len = TerMakeMbcs(MbcsText,tail,lead)
TerString2Lparam
Copy text into lParam pointer from the given string.
BOOL TerString2Lparam(text, lParam)
LPBYTE text; | The string to copy data from |
long lParam; | The 'lParam; value to copy text to |
Description: This function can be used within a message handler to retrieve text data from a lParam value.
Return value: This function returns TRUE when successful.