fast-html-parser icon indicating copy to clipboard operation
fast-html-parser copied to clipboard

prefix helper funcs with some str

Open Alexey-T opened this issue 5 years ago • 1 comments

E.g. "html_" prefix

function IsTag(TagType: string; Tag: string): boolean; function IsCloseTag(TagType: string; Tag: string): boolean;

->

function html_IsTag(TagType: string; Tag: string): boolean; function html_IsCloseTag(TagType: string; Tag: string): boolean;

Alexey-T avatar Sep 18 '20 12:09 Alexey-T

These too


{ most commonly used }
function GetVal(const tag, attribname_ci: string): string;
function GetTagName(const Tag: string): string;
function GetUpTagName(const tag: string): string;

{ less commonly used, but useful }
function GetNameValPair(const tag, attribname_ci: string): string;
function GetValFromNameVal(const namevalpair: string): string;

{ rarely needed nAmE= case sensitivity }
function GetNameValPair_cs(const tag, attribname: string): string;

{ old code with bugs from James }
function GetVal_JAMES(const tag, attribname_ci: string): string;
function GetNameValPair_JAMES(const tag, attribname_ci: string): string;

{ other utilities }
function CopyBuffer(StartIndex: PChar; Len: integer): string;
function Ucase(s: string): string;

Alexey-T avatar Sep 18 '20 12:09 Alexey-T