|
subroutine, private csv_record_getfield_char |
( |
type(csv_record), intent(inout) |
this, |
|
|
character(len=*), intent(out), optional |
field, |
|
|
integer, intent(out), optional |
flen, |
|
|
integer, intent(out), optional |
ier |
|
) |
| |
|
private |
Returns next field from the record this as a CHARACTER variable.
The field pointer is advanced to the next field. If all the fields have already been interpreted it returns an empty string anyway; in order to verify the end-of-record condition the ier parameter must be used.
- Parametri
-
[in,out] | this | object to be decoded |
[out] | field | contents of the field, if not provided, the field pointer is increased only; if the variable is not long enough, a warning is printed and the part that fits is returned; the variable is space-terminated anyway, so the flen parameter has to be used in order to evaluate possible significant trailing spaces |
[out] | flen | actual length of the field including trailing blanks, it is correctly computed also when field is not provided or too short |
[out] | ier | error code, 0 = OK, 1 = field too short, 2 = end of record |
Definizione alla linea 784 del file file_utilities.F90.
|