iText 5

Utils

Utils Public class

Description

Utility functions for the XMPToolkit implementation.

@since 06.06.2006

Diagram

flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.xmp.impl iTextSharp.xmp.impl.Utils[[Utils]] end subgraph iTextSharp.xmp iTextSharp.xmp.XmpConst[[XmpConst]] end iTextSharp.xmp.XmpConst --> iTextSharp.xmp.impl.Utils

Members

Methods

Public Static methods

Returns

Name

string

EscapeXml

(string value, bool forAttribute, bool escapeWhitespaces)

bool

IsXmlName

(string name)

bool

IsXmlNameNs

(string name)
Checks if the value is a legal "unqualified" XML name, as
defined in the XML Namespaces proposed recommendation.
These are XML names, except that they must not contain a colon.

string

NormalizeLangValue

(string value)

Internal Static methods

Returns

Name

bool

CheckUuidFormat

(string uuid)
Check some requirements for an UUID: Length of the UUID is 32 The Delimiter count is 4 and all the 4 delimiter are on their right
position (8,13,18,23)

bool

IsControlChar

(char c)

bool

IsInternalProperty

(string schema, string prop)

string

RemoveControlChars

(string value)
Replaces the ASCII control chars with a space.

string``[]

SplitNameAndValue

(string selector)

Details

Summary

Utility functions for the XMPToolkit implementation.

@since 06.06.2006

Inheritance

Methods

NormalizeLangValue

Source code

public static string NormalizeLangValue(string value)

Arguments

Type

Name

Description

string

value

SplitNameAndValue

Source code

internal static string SplitNameAndValue(string selector)

Arguments

Type

Name

Description

string

selector

IsInternalProperty

Source code

internal static bool IsInternalProperty(string schema, string prop)

Arguments

Type

Name

Description

string

schema

a schema namespace

string

prop

an XMP Property

Returns

Returns true if the property is defined as "Internal Property", see XMP Specification.

CheckUuidFormat

Source code

internal static bool CheckUuidFormat(string uuid)

Arguments

Type

Name

Description

string

uuid

uuid to test

Summary

Check some requirements for an UUID: Length of the UUID is 32 The Delimiter count is 4 and all the 4 delimiter are on their right position (8,13,18,23)

Returns

true - this is a well formed UUID, false - UUID has not the expected format

IsXmlName

Source code

public static bool IsXmlName(string name)

Arguments

Type

Name

Description

string

name

IsXmlNameNs

Source code

public static bool IsXmlNameNs(string name)

Arguments

Type

Name

Description

string

name

the value to check

Summary

Checks if the value is a legal "unqualified" XML name, as defined in the XML Namespaces proposed recommendation. These are XML names, except that they must not contain a colon.

Returns

Returns true if the name is a valid "unqualified" XML name.

IsControlChar

Source code

internal static bool IsControlChar(char c)

Arguments

Type

Name

Description

char

c

a char

Returns

Returns true if the char is an ASCII control char.

EscapeXml

Source code

public static string EscapeXml(string value, bool forAttribute, bool escapeWhitespaces)

Arguments

Type

Name

Description

string

value

bool

forAttribute

bool

escapeWhitespaces

RemoveControlChars

Source code

internal static string RemoveControlChars(string value)

Arguments

Type

Name

Description

string

value

a node value

Summary

Replaces the ASCII control chars with a space.

Returns

Returns the cleaned up value

Generated with ModularDoc