YAZ  5.23.1
Functions
proxunit.h File Reference

Header for JSON functions. More...

#include <yaz/yconfig.h>

Go to the source code of this file.

Functions

const char * z_ProxUnit_to_str (int u)
 converts prox unit integer to string More...
 
int z_str_to_ProxUnit (const char *str)
 converts unit name string to unit integer More...
 

Detailed Description

Header for JSON functions.

Definition in file proxunit.h.

Function Documentation

const char* z_ProxUnit_to_str ( int  u)

converts prox unit integer to string

Parameters
uunit
Returns
result name or NULL if not-found

Definition at line 33 of file proxunit.c.

References Z_IOItemOrder::u, units, Z_ProxUnit_byte, and Z_ProxUnit_character.

Referenced by yaz_prox_unit_name().

int z_str_to_ProxUnit ( const char *  str)

converts unit name string to unit integer

Parameters
strunit name
Returns
unit code (positive integer) or 0 if unknown name

Definition at line 40 of file proxunit.c.

References units, and Z_ProxUnit_byte.

Referenced by cql_pr_prox().