Next: , Previous: , Up: The Record Library   [Index]


13.5.10 Data Type Specific Record Search Functions

rs_g_<type-name>

integer rs_g_<type-name>(<type> &d, record r, text a, text &s);

is zero if the r record defines no position (maps no key) after a, non zero otherwise. In the latter case s is set to the first position after a and d to its associated data.

rs_l_<type-name>

integer rs_l_<type-name>(<type> &d, record r, text a, text &s);

is zero if the r record defines no position (maps no key) before a, non zero otherwise. In the latter case s is set to the last position before a and d to its associated data.

rs_o_<type-name>

integer rs_o_<type-name>(<type> &d, record r, text a, text &s);

is zero if the r record defines no position (maps no key) less or equal to a, non zero otherwise. In the latter case s is set to the last not greater position and the first argument to its associated data.

rs_u_<type-name>

integer rs_u_<type-name>(<type> &d, record r, text a, text &s);

is zero if the r record defines no position (maps no key) greater or equal to a, non zero otherwise. In the latter case s is set to the first not less position and the first argument to its associated data.