| 3728 | } |
| 3729 | |
| 3730 | USHORT CVT_get_string_ptr(const dsc* desc, USHORT* ttype, UCHAR** address, |
| 3731 | vary* temp, USHORT length, DecimalStatus decSt, ErrorFunction err) |
| 3732 | { |
| 3733 | /************************************** |
| 3734 | * |
| 3735 | * C V T _ g e t _ s t r i n g _ p t r |
| 3736 | * |
| 3737 | ************************************** |
| 3738 | * |
| 3739 | * Functional description |
| 3740 | * Get address and length of string, converting the value to |
| 3741 | * string, if necessary. The caller must provide a sufficiently |
| 3742 | * large temporary. The address of the resultant string is returned |
| 3743 | * by reference. Get_string returns the length of the string (in bytes). |
| 3744 | * |
| 3745 | * The text-type of the string is returned in ttype. |
| 3746 | * |
| 3747 | * Note: If the descriptor is known to be a string type, the fourth |
| 3748 | * argument (temp buffer) may be NULL. |
| 3749 | * |
| 3750 | * If input (desc) is already a string, the output pointers |
| 3751 | * point to the data of the same text_type. If (desc) is not |
| 3752 | * already a string, output pointers point to ttype_ascii. |
| 3753 | * |
| 3754 | **************************************/ |
| 3755 | fb_assert(err != NULL); |
| 3756 | |
| 3757 | CommonCallbacks callbacks(err); |
| 3758 | return CVT_get_string_ptr_common(desc, ttype, address, temp, length, decSt, &callbacks); |
| 3759 | } |
| 3760 | |
| 3761 | |
| 3762 | void CVT_move(const dsc* from, dsc* to, DecimalStatus decSt, ErrorFunction err) |
nothing calls this directly
no test coverage detected