diff --git a/api-index-full.html b/api-index-full.html index 6cb21d3..bbd8165 100644 --- a/api-index-full.html +++ b/api-index-full.html @@ -8,7 +8,7 @@ - + @@ -91,6 +91,10 @@ psl_free, function in Public Suffix List functions
+
+psl_free_string, function in Public Suffix List functions +
+

G

psl_get_version, function in Public Suffix List functions @@ -154,6 +158,10 @@
+PSL_TYPE_NO_STAR_RULE, macro in Public Suffix List functions +
+
+
PSL_TYPE_PRIVATE, macro in Public Suffix List functions
@@ -185,6 +193,6 @@
+
Generated by GTK-Doc V1.28 \ No newline at end of file diff --git a/deprecated-api-index.html b/deprecated-api-index.html index 011fb31..fd1051a 100644 --- a/deprecated-api-index.html +++ b/deprecated-api-index.html @@ -7,7 +7,7 @@ - + @@ -24,6 +24,6 @@ +
Generated by GTK-Doc V1.28 \ No newline at end of file diff --git a/home.png b/home.png index c989d46..e80e202 100644 Binary files a/home.png and b/home.png differ diff --git a/index.html b/index.html index b2971e1..891ea71 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - + @@ -15,7 +15,7 @@

- for Libpsl 0.17.0 + for Libpsl 0.20.2 . The latest version of this documentation can be found on-line at GitHub. @@ -34,6 +34,6 @@

+
Generated by GTK-Doc V1.28 \ No newline at end of file diff --git a/left-insensitive.png b/left-insensitive.png index b1148fb..fea007e 100644 Binary files a/left-insensitive.png and b/left-insensitive.png differ diff --git a/left.png b/left.png index c164913..193905f 100644 Binary files a/left.png and b/left.png differ diff --git a/libpsl-Public-Suffix-List-functions.html b/libpsl-Public-Suffix-List-functions.html index 5e3810f..6b6d1ce 100644 --- a/libpsl-Public-Suffix-List-functions.html +++ b/libpsl-Public-Suffix-List-functions.html @@ -8,7 +8,7 @@ - + @@ -204,6 +204,14 @@ psl_str_to_utf8lower () + + +void + + +psl_free_string () + + @@ -245,6 +253,10 @@ #define +PSL_TYPE_NO_STAR_RULE + + +#define PSL_TYPE_ANY @@ -294,7 +306,7 @@ To free the allocated resources, call

Returns

-

Pointer to a PSL context or NULL on failure.

+

Pointer to a PSL context or NULL on failure.

Since: 0.1

@@ -323,7 +335,7 @@ To free the allocated resources, call

Returns

-

Pointer to a PSL context or NULL on failure.

+

Pointer to a PSL context or NULL on failure.

Since: 0.1

@@ -335,12 +347,12 @@ psl_latest (const char *fn

This function loads the the latest available PSL data from either

  • fname - (application specific filename, may be NULL)

  • + (application specific filename, may be NULL)

  • location specified during built-time (filename from ./configure --with-psl-distfile)

  • built-in PSL data (generated from ./configure --with-psl-file)

  • location of built-in data (filename from ./configure --with-psl-file)

-

If none of the above is available, the function returns NULL.

+

If none of the above is available, the function returns NULL.

To free the allocated resources, call psl_free().

Parameters

@@ -352,14 +364,14 @@ psl_latest (const char *fn

fname

-

Name of PSL file or NULL

+

Name of PSL file or NULL

 

Returns

-

Pointer to a PSL context or NULL on failure.

+

Pointer to a PSL context or NULL on failure.

Since: 0.16

@@ -369,9 +381,9 @@ psl_latest (const char *fn
const psl_ctx_t *
 psl_builtin (void);

This function returns the PSL context that has been generated and built in at compile-time. -You don't have to free the returned context explicitely.

+You don't have to free the returned context explicitly.

The builtin data also contains punycode entries, one for each international domain name.

-

If the generation of built-in data has been disabled during compilation, NULL will be returned. +

If the generation of built-in data has been disabled during compilation, NULL will be returned. When using the builtin psl context, you can provide UTF-8 (lowercase + NFKC) or ASCII/ACE (punycode) representations of domains to functions like psl_is_public_suffix().

@@ -462,7 +474,10 @@ psl_is_public_suffix2 (const Mozilla Public Suffix List.

type specifies the PSL section where to perform the lookup. Valid values are -PSL_TYPE_PRIVATE, PSL_TYPE_ICANN and PSL_TYPE_ANY.

+PSL_TYPE_PRIVATE, PSL_TYPE_ICANN, PSL_TYPE_NO_STAR_RULE, and PSL_TYPE_ANY.

+

PSL_TYPE_NO_STAR_RULE switches of the 'prevailing star rule' (see +List under 'Algorithm' 2.). +Applying the flag means that TLDs not explicitly listed in the PSL are *not* treated as public suffixes.

International domain names have to be either in UTF-8 (lowercase + NFKC) or in ASCII/ACE format (punycode). Other encodings likely result in incorrect return values. @@ -546,9 +561,9 @@ Use helper function

Returns

Pointer to longest public suffix part of domain -or NULL if domain +or NULL if domain does not contain a public suffix (or if psl -is NULL).

+is NULL).

Since: 0.1

@@ -594,9 +609,9 @@ Use helper function

Returns

Pointer to shortest private suffix part of domain -or NULL if domain +or NULL if domain does not contain a private suffix (or if psl -is NULL).

+is NULL).

Since: 0.1

@@ -608,6 +623,9 @@ psl_suffix_count (const psl . The number of exceptions within the Public Suffix List are not included.

+

If the information is not available, the return value is -1 (since 0.19). +This is the case with DAFSA blobs or if psl + is NULL.

Parameters

@@ -625,7 +643,7 @@ The number of exceptions within the Public Suffix List are not included.

Returns

-

Number of public suffixes entries in PSL context.

+

Number of public suffixes entries in PSL context or -1 if this information is not available.

Since: 0.1

@@ -636,6 +654,9 @@ The number of exceptions within the Public Suffix List are not included.

psl_suffix_exception_count (const psl_ctx_t *psl);

This function returns number of public suffix exceptions maintained by psl .

+

If the information is not available, the return value is -1 (since 0.19). +This is the case with DAFSA blobs or if psl + is NULL.

Parameters

@@ -653,7 +674,7 @@ psl_suffix_exception_count (const

Returns

-

Number of public suffix exceptions in PSL context.

+

Number of public suffix exceptions in PSL context or -1 if this information is not available.

Since: 0.1

@@ -664,6 +685,9 @@ psl_suffix_exception_count (const const psl_ctx_t *psl);

This function returns number of public suffix wildcards maintained by psl .

+

If the information is not available, the return value is -1 (since 0.19). +This is the case with DAFSA blobs or if psl + is NULL.

Parameters

@@ -681,7 +705,7 @@ psl_suffix_wildcard_count (const

Returns

-

Number of public suffix wildcards in PSL context.

+

Number of public suffix wildcards in PSL context or -1 if this information is not available.

Since: 0.10.0

@@ -865,8 +889,8 @@ psl_str_to_utf8lower (const char<

This helper function converts a string to UTF-8 lowercase + NFKC representation. Lowercase + NFKC UTF-8 is needed as input to the domain checking functions.

lower - is set to NULL on error.

-

The return value 'lower' must be freed after usage.

+ stays unchanged on error.

+

When returning PSL_SUCCESS, the return value 'lower' must be freed after usage.

Parameters

@@ -884,13 +908,13 @@ Lowercase + NFKC UTF-8 is needed as input to the domain checking functions.

+, e.g. 'iso-8859-1' or NULL

+for to lowercase conversion, e.g. 'de' or NULL

@@ -906,7 +930,7 @@ for to lowercase conversion, e.g. 'de' or str -is a NULL value. +is a NULL value. PSL_ERR_CONVERTER: Failed to open the unicode converter with name encoding PSL_ERR_TO_UTF16: Failed to convert str to unicode @@ -916,12 +940,36 @@ PSL_ERR_NO_MEM: Failed to allocate memory

Since: 0.4

+
+
+

psl_free_string ()

+
void
+psl_free_string (char *str);
+

This function free()'s the memory allocated by psl_str_to_utf8lower() when +returning a lowercase string

+
+

Parameters

+

encoding

charset encoding of str -, e.g. 'iso-8859-1' or NULL

 

locale

locale of str -for to lowercase conversion, e.g. 'de' or NULL

 
+++++ + + + + + +

str

pointer to lowercase string returned by psl_str_to_utf8lower()

 
+
+

Since: 0.19

+

Types and Values

PSL_VERSION

-
#define PSL_VERSION "0.17.0"
+
#define PSL_VERSION "0.20.2"
 

@@ -933,37 +981,43 @@ PSL_ERR_NO_MEM: Failed to allocate memory


PSL_VERSION_MINOR

-
#define PSL_VERSION_MINOR 17
+
#define PSL_VERSION_MINOR 20
 

PSL_VERSION_NUMBER

-
#define PSL_VERSION_NUMBER 0x001100
+
#define PSL_VERSION_NUMBER 0x001402
 

PSL_VERSION_PATCH

-
#define PSL_VERSION_PATCH 0
+
#define PSL_VERSION_PATCH 2
 

PSL_TYPE_ICANN

-
#define PSL_TYPE_ICANN   (1<<0)
+
#define PSL_TYPE_ICANN        (1<<0)
 

PSL_TYPE_PRIVATE

-
#define PSL_TYPE_PRIVATE (1<<1)
+
#define PSL_TYPE_PRIVATE      (1<<1)
+
+
+
+
+

PSL_TYPE_NO_STAR_RULE

+
#define PSL_TYPE_NO_STAR_RULE (1<<2)
 

PSL_TYPE_ANY

-
#define PSL_TYPE_ANY     (PSL_TYPE_ICANN | PSL_TYPE_PRIVATE)
+
#define PSL_TYPE_ANY          (PSL_TYPE_ICANN | PSL_TYPE_PRIVATE)
 

@@ -1043,6 +1097,6 @@ Positive values are reserved for non-error return codes.

+
Generated by GTK-Doc V1.28 \ No newline at end of file diff --git a/libpsl.devhelp2 b/libpsl.devhelp2 index da17e49..2e543eb 100644 --- a/libpsl.devhelp2 +++ b/libpsl.devhelp2 @@ -30,6 +30,7 @@ + @@ -37,6 +38,7 @@ + diff --git a/libpsl.html b/libpsl.html index 34662fc..be11918 100644 --- a/libpsl.html +++ b/libpsl.html @@ -8,7 +8,7 @@ - + @@ -30,6 +30,6 @@

+
Generated by GTK-Doc V1.28 \ No newline at end of file diff --git a/object-tree.html b/object-tree.html index 48b720a..12fb08a 100644 --- a/object-tree.html +++ b/object-tree.html @@ -8,7 +8,7 @@ - + @@ -27,6 +27,6 @@ +
Generated by GTK-Doc V1.28 \ No newline at end of file diff --git a/right-insensitive.png b/right-insensitive.png index c1efa27..ef7d866 100644 Binary files a/right-insensitive.png and b/right-insensitive.png differ diff --git a/right.png b/right.png index 83361a6..07fefed 100644 Binary files a/right.png and b/right.png differ diff --git a/style.css b/style.css index 3675420..4be4ede 100644 --- a/style.css +++ b/style.css @@ -30,6 +30,10 @@ body vertical-align: top; } +span.nowrap { + white-space: nowrap; +} + div.gallery-float { float: left; diff --git a/up-insensitive.png b/up-insensitive.png index 13e1a4f..99528f8 100644 Binary files a/up-insensitive.png and b/up-insensitive.png differ diff --git a/up.png b/up.png index 67a9054..aa6a2ae 100644 Binary files a/up.png and b/up.png differ