TecUnzipper_FindFileByExt

ZIP and BASE64 Handling · String encodings

Definition

Windows: ANSI; Unix: UTF-8

INT TecUnzipper_FindFileByExt(HTUNZIPPER htUnzipper, LPCSTR pszExtension, INT nStartIndex, BOOL bCaseInsensitiveSearch);

Windows only: UTF-16

INT TecUnzipper_FindFileByExtW(HTUNZIPPER htUnzipper, LPCWSTR pszExtension, INT nStartIndex, BOOL bCaseInsensitiveSearch);

Contract

Finds the first file in the set of extracted files that matches the specified file extension.

Finds the first file matching the specified file extension contained in an (optional BASE64 encoded) zip file. Usually this function is used to find contained *.tfr or *.tff files. Call this function only if TecUnzipper_Extract returned ErrOk(0).

This function may be changed in the future.

Returns

The index of the first found file or -1 if no file was found (see TecUnzipper_GetFile)

Parameters

Parameter / typeDescription
htUnzipperHTUNZIPPER


TECUnzipper-handle - see TecUnzipper_Alloc

pszExtensionLPCSTR / LPCWSTR


Search file with this file extension only (the file extension must be specified without a dot at the beginning - e.g. tff)

nStartIndexINT


Start index to start the search with (-1 for start at the beginning)

bCaseInsensitiveSearchBOOL


TRUE if the case should be case insensitive

Windows only: UTF-16

Finds the first file in the set of extracted files that matches the specified file-extension.

Finds the first file matching the specified file extension contained in an (optional BASE64 encoded) zip file. Usually this function is used to find contained *.tfr or *.tff files. Call this function only if TecUnzipper_Extract returned ErrOk(0).

This function may be changed in the future.

Returns

The index of the first found file or -1 if no file was found (see TecUnzipper_GetFile)

Parameters

Parameter / typeDescription
htUnzipperHTUNZIPPER


TECUnzipper-handle - see TecUnzipper_Alloc

pszExtensionLPCWSTR


Search file with this file extension only (the file extension must be specified without a dot at the beginning - e.g. tff)

nStartIndexINT


Start index to start the search with (-1 for start at the beginning)

bCaseInsensitiveSearchBOOL


TRUE if the case should be case insensitive

Search documentation

Search in
More scopes
Additional scopes

All contents