hb_U - Petewg/harbour-core GitHub Wiki
-
hb_UAt(
<cSubString>, <cString>, [<nFrom>], [<nTo>]
) β nAt
Unicode counterpart of 'hb_At()'. -
hb_UChar(
<nCode>
) β cText
return string withU+nCode
character in HVM CP encoding. -
hb_UCode(
<cText>
) β nCode
return Unicode value of 1-st character (not byte) in given string. Similar to 'hb_UTF8Asc()'. -
hb_ULen(
<cText>
) β nChars
returns the length of unicode string<cText>
, in characters. -
hb_ULeft(
<cString>, <nCount>
) β cSubstring
same as 'Left()' but applicable to UTF8 encoded text. -
hb_UPadC(
<exp>, <nLength>, [<cFillChar>]
) β cPaddedString
same as 'PadC()' but Unicode oriented. -
hb_UPadL(
<exp>, <nLength>, [<cFillChar>]
) β cPaddedString same as 'PadL()' but Unicode oriented. -
hb_UPadR(
<exp>, <nLength>, [<cFillChar>]
) β cPaddedString
same as 'PadR()' but Unicode oriented. -
hb_UPeek(
<cText>, <n>
) β nCode
return unicode value of<n>
-th character in given string -
hb_UPoke(
[@]<cText>, <n>, <nVal>
) β cText
change<n>-th
character in given string to unicode<nVal>
one and return modified text. -
hb_URight(
<cString>, <nCount>
) β cSubstring -
hb_UserLang() β cOSLangName
returns system's (OS) language name identifier, for the current user, in the form"ll[-SS]"
wherell
is language andSS
sublanguage identifier. (f.e.: en-US, fr-BE, el-GR etc ). Should not be confused with the value returned by 'hb_langSelect()', albeit they may coincide. -
hb_UserName() β cOSUserName
returns OS Logon user name. -
hb_UStuff(
<cString>, <nAt>, <nDel>, <cIns>
) β cResult
Unicode counterpart of 'Staff()'. -
hb_USubStr(
<cString>, <nStart>, <nCount>
) β cSubstring
Unicode counterpart of 'SubStr()'. -
hb_UTCOffset(
[<tLocalTime>]
) β nSeconds
returns the UTC offset as a signed number of seconds. -
hb_utf8Asc(
<cExp>
) β nUTF8CharCode
same as 'Asc()' but applicable to UTF8 encoded text. Similar to 'hb_UCode()'. -
hb_utf8At(
<...>
) β nPos
same as hb_At() but applicable to UTF8 encoded text. -
hb_utf8Chr(
<n>
) β cUTF8Char
same as 'Chr()' but applicable to UTF8 encoded text. -
hb_utf8Left(...) β cString
same as 'Left()' but applicable to UTF8 encoded text. -
hb_utf8Len(`' ) β nLen same as 'Len()' but applicable to UTF8 encoded text.
-
hb_utf8Peek(
<cText>, <n>
) β nCode
return UTF8 value of<n>-th
character in given string. -
hb_utf8Poke(
[@]<cText>, <n>, <nVal>
) β cText
replace<n>-th
character in given string to UTF8<nVal>
one and return modified text. -
hb_utf8RAt() β nPos
same as 'hb_RAt()' but applicable to UTF8 encoded text. -
hb_utf8Right() β nPos
same as 'Right()' but applicable to UTF8 encoded text. -
hb_utf8StrTran() β cString
same as 'StrTran()' but applicable to UTF8 encoded text. -
hb_utf8Stuff() β cString
same as 'Stuff()' but applicable to UTF8 encoded text. -
hb_utf8SubStr() β cString
same as 'SubStr()' but applicable to UTF8 encoded text. -
hb_utf8ToStr(
<cUTF8Str> [, <cCPID>]
) β cStr
it performs "translation" from UTF-8 to<cCPID>
Harbour codepage id, f.e.: "EN", "ES", "ESWIN" etc.
<cUTF8Str>
supposed to be a UTF-8 encoded string.
When<cCPID>
is not given then the default HVM codepage (i.e. that set by hb_cdpSelect()) is used. -
hb_UTF8ToStrBox(
<cUTF8String>
) β <cBoxCharsStringEncodedIn_GT_BOXCP
returns a string consisted of box characters, trans-coded fromUTF-8
toGT_BOXCP
code-page, which may differ from the main code-page. In other words, this is a trans-code function specific to 'Box characters', needed becausehb_utf8ToStr()
(see above) will convert the given UTF-8 string to main or given code-page, while the code-page of box drawing characters might have been setup differently, withHB_GTI_BOXCP
(seehb_gtInfo()
function). This function will take into account that setting, which may or may not be the same as the main used code-page.