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 |
|---|---|
|
|
( |
|
|
( |
|
|
( |
|
|
( |
Internal Static methods
|
Returns |
Name |
|---|---|
|
|
( |
|
|
( |
|
|
( |
|
|
( |
|
|
( |
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 |
|---|---|---|
|
|
value |
SplitNameAndValue
Source code
internal static string SplitNameAndValue(string selector)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
selector |
IsInternalProperty
Source code
internal static bool IsInternalProperty(string schema, string prop)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
schema |
a schema namespace |
|
|
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 |
|---|---|---|
|
|
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 |
|---|---|---|
|
|
name |
IsXmlNameNs
Source code
public static bool IsXmlNameNs(string name)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
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 |
|---|---|---|
|
|
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 |
|---|---|---|
|
|
value |
|
|
|
forAttribute |
|
|
|
escapeWhitespaces |
RemoveControlChars
Source code
internal static string RemoveControlChars(string value)
Arguments
|
Type |
Name |
Description |
|---|---|---|
|
|
value |
a node value |
Summary
Replaces the ASCII control chars with a space.
Returns
Returns the cleaned up value
Generated with ModularDoc