Helper feature flags

StringKitHelper conditionally includes helper method groups. Its default is deliberately simple:

  • With no SK_ANY definition, SK_ALL is defined and all helper groups are available.
  • Define SK_ANY to opt into selective mode.
  • In selective mode, define one or more SK_* groups at project/build level.
Expected output
fpc -dSK_ANY -dSK_CASE -dSK_ENCODE -Fusrc your_program.pas
DefineIncludes
SK_MANIPtrimming, padding, whitespace, length, substrings
SK_MATCHregex, replacement, text inspection, word extraction
SK_COMPAREdistances, similarities, fuzzy matching
SK_CASEidentifier and title conversion
SK_VALIDATEcommon syntax validation
SK_FORMATtruncation and number/file-size formatting
SK_NUMERICRoman, ordinal, number-to-words
SK_ENCODEHTML, URL, Base64, hex
SK_SPLITsplitting and joining
SK_PHONETICphonetics, counts, readability, n-grams

The symbols must be visible while StringKitHelper.pas is compiled. A {$DEFINE} only inside an application source file does not recompile a separately built helper unit. See Static API vs helper API and Helper coverage.