Unknown YCP Module |
This module has an unstable interface. |
File: modules/Punycode.ycp
Package: Main yast package
Summary: DNS Punycode Handling
Authors: Lukas Ocilka
$Id$
Returns the maximum cache size (sum of already converted strings).
- Return value:
-
maximum_cache_size
Offers to set the maximum cache size (sum of already converted strings).
- Parameters:
-
new_max_size
Adds new cache records for encoded and decoded strings.
- Parameters:
-
decoded encoded
Returns string encoded in Punycode if it has been already cached. Returns nil if not found.
- Parameters:
-
decoded_string
- Return value:
-
encoded_string (Punycode)
Returns string encoded in Punycode if it has been already cached. Returns nil if not found.
- Parameters:
-
encoded_string
- Return value:
-
decoded_string (Unicode)
Returns the current temporary directory. Lazy loading for the initialization is used.
Function takes the list of strings and returns them in the converted format. Unicode to Punycode or Punycode to Unicode (param to_punycode). It uses a cache of already-converted strings.
- Parameters:
-
strings_in to_punycode
Converts list of UTF-8 strings into their Punycode ASCII repserentation.
- Parameters:
-
punycode_strings
- Return value:
-
encoded_strings
Converts list of Punycode strings into their UTF-8 representation.
- Parameters:
-
punycode_strings
- Return value:
-
decoded_strings
Encodes the domain name (relative or FQDN) to the Punycode.
- Parameters:
-
decoded_domain_name
- Return value:
-
encoded domain_name
- Example
-
EncodeDomainName("žížala.jůlinka.go.home") -> "xn--ala-qma83eb.xn--jlinka-3mb.go.home"
Decodes the domain name (relative or FQDN) from the Punycode.
- Parameters:
-
encoded_domain_name
- Return value:
-
decoded domain_name
- Example
-
DecodeDomainName("xn--ala-qma83eb.xn--jlinka-3mb.go.home") -> "žížala.jůlinka.go.home"
Decodes the list of domain names to their Unicode representation. This function is similar to DecodePunycodes but it works with every string as a domain name (that means every domain name is parsed by dots and separately evaluated).
- Parameters:
-
encoded_domain_names
- Return value:
-
decoded_domain_names
- Example
-
DocodeDomainNames(["mx1.example.org", "xp3.example.org.", "xn--ala-qma83eb.org.example."]) -> ["mx1.example.org", "xp3.example.org.", "žížala.org.example."]