$StrAnd: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
(Automatically generated page update) |
||
Line 54: | Line 54: | ||
<li>[[Fast/Unload User Language Interface]]</li> | <li>[[Fast/Unload User Language Interface]]</li> | ||
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li> | <li>[[Media:JoclrNew.pdf|Janus Open Client]]</li> | ||
<li>[ | <li>[[Media:JosrvrNew.pdf|Janus Open Server]</li> | ||
<li>[[Janus Sockets]]</li> | <li>[[Janus Sockets]]</li> | ||
<li>[[Janus Web Server]]</li> | <li>[[Janus Web Server]]</li> |
Revision as of 22:47, 19 February 2015
Bit-wise AND two strings
Note: Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $StrAnd function is BitAndString.
This function performs a bit-wise AND of two strings.
The $StrAnd function accepts three arguments and returns a string result that is the bit-wise AND of the first two arguments, the shorter being padded with as many copies of the third argument as are required to make the string lengths equal.
Syntax
%str = $StrAnd(string1, string2, [pad])
Syntax terms
%str | The bit-wise AND of string1 and string2. |
---|---|
string1 | An arbitrary string. |
string2 | Another arbitrary string. |
pad | An arbitrary string that is appended to the shorter of the first two strings and replicated as many times as required to make the strings of equal length. If this value is not specified or is null, it defaults to a single null byte (X'00'). |
Examples
- This code fragment would set
%junk
toX'010221000000'
:%X = $X2C('112233445566') %Y = $X2C('654321') %junk = $StrAnd(%X, %Y)
- These statements would set
%junk
toX'000000444444'
:%X = $X2C('112233445566') %junk = $StrAnd(%X, , $X2C('CC'))
- This code fragment would set
%junk
toX'112233005500'
:%X = $X2C('112233445566') %Y = $X2C('1122') %Z = $X2C('FF00') %junk = $StrAnd(%X, %Y, %Z)
Products authorizing $StrAnd
- Sirius functions
- Fast/Unload User Language Interface
- Janus Open Client
- [[Media:JosrvrNew.pdf|Janus Open Server]
- Janus Sockets
- Janus Web Server
- Japanese functions
- Sir2000 Field Migration Facility