User Tools

Site Tools


api:dk11:delphi:gisinternals.decodecontenttype_string_boolean

Table of Contents

DecodeContentType method

DK11 for Delphi | GisInternals.DecodeContentType | Enums | Fields | Methods | Types

Decode provided content type against value like 'image/png'.

Syntax

// Delphi
function DecodeContentType(
  const _content : String;
  const _basictypes : Boolean
) : TGIS_ContentType;
// C++ Builder
extern DELPHI_PACKAGE TGIS_ContentType* DecodeContentType(
  const UnicodeString _content,
  const bool _basictypes
);

Parameters

Name Type Description
_content String content type String
_basictypes Boolean if true then match all variation to a main type like gisContentTypePng24 to gisContentTypePng

Result

Type Description
TGIS_ContentType Decoded content type.

Remarks

Decoding is done by matching beginning of the String. So for example 'image/gif; something more' will match 'image/gif' sentinel.

2019/02/08 01:13