Return to Language Reference home pageHarbour API Explorer
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Only APIs with Curated Documentation are available from this screen.
Most API (functions) description comes from https://github.com/Petewg/harbour-core/wiki. Same content license applies.
To search all Harbour Core, Contribs and Packages APIs, including undocumented ones, go to Source Code Explorer.
Found 10 APIs
hb_BitAnd(<nVal1>,<nVal2>,[<nVal3>],[...]) ➔ <nResult>

Performs a bitwise AND operation, same as & operator in C language.


HB_BITISSET => hb_BitTest(<nVal>,<nBit>) ➔ <lResult>

Returns .T. if the bit <nBit> in <nVal> is set. (<nBit> is ZERO based).


hb_BitNot(<nVal>) ➔ <nResult>

Returns the bitwise complement of <nVal> (all bits are flipped), same as ~ operator in C language.


hb_BitOr(<nVal1>,<nVal2>,[<nVal3>],[...]) ➔ <nResult>

Performs a bitwise OR operation, same as | operator in C language.


hb_BitReset(<nVal>,<nBit>) ➔ <nResult>

Returns the result of setting the bit <nBit> of <nVal> to 0. (<nBit> is ZERO based).


hb_BitSet(<nVal>,<nBit>) ➔ <nResult>

Returns the result of setting the bit <nBit> of <nVal> to 1 (<nBit> is ZERO based).


hb_BitShift(<nVal>,<nBits>) ➔ <nResult>

returns <nVal> shifted <nBits> bits positions, equivalent of << and >> (LSHIFT/RSHIFT) operators in C.
If <nBits> is a positive integer, bits are shifted to the left (LSHIFT), if is negative, bits are shifted to the right (RSHIFT).


hb_BitTest(<nVal>,<nBit>) ➔ <lResult>

Returns .T. if the bit <nBit> in <nVal> is set. (<nBit> is ZERO based).


hb_BitXor(<nVal1>,<nVal2>,[<nVal3>],[...]) ➔ <Numeric>

Performs a bitwise XOR operation, equivalent of <hat> operator in C language.


hb_StrXor(<cString>,<cnBytes>) ➔ <cResult>

Performs a XOR operation in each character of <cString> with the string or number supplied in <cnBytes>.