Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
UTL_RAW , 11 of 22
This function translates the bytes in the input RAW
r
according to the bytes in the translation RAWs
from_set
and to_set
. If a byte in r
has a matching byte in from_set
, then it is replaced by the byte in the corresponding position in to_set
, or deleted.
Bytes in r
, but undefined in from_set
, are copied to the result. Only the first (leftmost) occurrence of a byte in from_set
is used. Subsequent duplicates are not scanned and are ignored. If to_set
is shorter than from_set
, then the extra from_set
bytes have no translation correspondence and any bytes in r
matching.
UTL_RAW.TRANSLATE ( r IN RAW, from_set IN RAW, to_set IN RAW) RETURN RAW;
pragma restrict_references(translate, WNDS, RNDS, WNPS, RNPS);
Parameter | Description |
---|---|
r |
|
from_set |
|
to_set |
|
Return | Description |
---|---|
RAW |
Translated byte-string. |
Error | Description |
---|---|
VALUE_ERROR |
-
-
- |
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|