You are not logged in.
Pages: 1
I think there are small errors in the description.
Unit mormot.core.text
Order of parameters in the example are wrong.
/// return the index of Value in Values[] using IdemPropNameU(), -1 if not found
// - typical use with a dynamic array is like:
// ! index := FindPropName(pointer(aDynArray),length(aDynArray),aValue);
function FindPropName(Values: PRawUtf8; const Value: RawUtf8; ValuesCount: integer): integer; overload;
Unit mormot.core.base
Two times VarIsEmpty() one should be VarIsNull().
/// same as VarIsEmpty(V) or VarIsEmpty(V), but faster
// - we also discovered some issues with FPC's Variants unit, so this function
// may be used even in end-user cross-compiler code
function VarIsEmptyOrNull(const V: Variant): boolean;
/// same as VarIsEmpty(PVariant(V)^) or VarIsEmpty(PVariant(V)^), but faster
// - we also discovered some issues with FPC's Variants unit, so this function
// may be used even in end-user cross-compiler code
function VarDataIsEmptyOrNull(VarData: pointer): boolean;
With best regards
Thomas
Offline
Pages: 1