#1 2021-04-21 19:01:28

tbo
Member
Registered: 2015-04-20
Posts: 349

Small typos in the description

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

#2 2021-04-21 20:55:53

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,548
Website

Re: Small typos in the description

Committed.

Thanks for the feedback!

Offline

Board footer

Powered by FluxBB