CodeSnip Old Code (SVN)
A repository for source code snippets, designed with Pascal in mind.
Brought to you by:
delphidabbler
--- a/trunk/Src/DBIO.UIniDataReader.pas +++ b/trunk/Src/DBIO.UIniDataReader.pas @@ -176,7 +176,7 @@ /// <returns>IStringList containing names of snippets.</returns> function GetCatSnippets(const CatID: string): IStringList; /// <summary> - /// Gets propertyies of a snippet. + /// Gets properties of a snippet. /// </summary> /// <param name="Snippet">string [in] Name of snippet.</param> /// <param name="Props">TSnippetData [in/out] Receives empty property @@ -281,8 +281,8 @@ * ? - Not tested. * * 11) [StandardFormat] - whether snippet is in standard format. Assumes true * * if not present and there is no Kind value. * -* 12) [Kind] - kind of snippet. One of freeform, routine, type, const or * -* unit. If value not present then routine is assumed unless * +* 12) [Kind] - kind of snippet. One of freeform, routine, type, const, unit * +* or class. If value not present then routine is assumed unless * * StandardFormat is present and 0, when freeform is assumed. * * * * ---------------------------------------------------------------------------- * @@ -464,6 +464,8 @@ Result := skTypeDef else if StrSameText(KindStr, 'unit') then Result := skUnit + else if StrSameText(KindStr, 'class') then + Result := skClass // invalid or no Kind property: kind depends on StdFormat property else if GetStdFormatProperty then Result := skRoutine