-
Notifications
You must be signed in to change notification settings - Fork 4
hb_U
-
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.
Harbour Functions Dictionary Many of the entries presented in this wiki, have been obtained from various sources (see References); however, a good number of them have been written «from scratch» (or rewritten/corrected), particularly those referring to newer Harbour functions. Anyway, it's a 'work in progress', so there might be omissions, oversights and / or errors. That said, any suggestion/correction/comment are more than welcome --many thanks, to those few who already have made contributions!
Harbour exclusive functions | Clipper compatible functions |
---|---|
hb_A | A |
hb_B | B |
hb_C | C |
hb_D | D |
hb_E | E |
hb_F | F |
hb_G | G |
hb_H | H |
hb_I | I |
hb_J_K | J K |
hb_L | L |
hb_M | M |
hb_N_O | N O |
hb_P | P |
hb_R | Q R |
hb_S | S |
hb_T | T |
hb_U | U |
hb_V | V W |
hb_W | X Y |
- Contrib. Libraries
HBWIN WinAPI Library | Compress Libraries |
HBHPDF Library (Haru) | Multi Threading |
Harbour Socket API | hbCT (Cl*pper tools) |
Serial API | hbNF (NanForum library) |
HBCURL cURL API Library | Mini-XML docs |
-
praeterea lectio...
Miscellaneous Readings