Skip to main content
Skip table of contents

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
ReturnsName
stringEscapeXml(string value, bool forAttribute, bool escapeWhitespaces)
boolIsXmlName(string name)
boolIsXmlNameNs(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.
stringNormalizeLangValue(string value)
Internal Static methods
ReturnsName
boolCheckUuidFormat(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)
boolIsControlChar(char c)
boolIsInternalProperty(string schema, string prop)
stringRemoveControlChars(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
TypeNameDescription
stringvalue
SplitNameAndValue

Source code

internal static string SplitNameAndValue(string selector)
Arguments
TypeNameDescription
stringselector
IsInternalProperty

Source code

internal static bool IsInternalProperty(string schema, string prop)
Arguments
TypeNameDescription
stringschemaa schema namespace
stringpropan 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
TypeNameDescription
stringuuiduuid 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
TypeNameDescription
stringname
IsXmlNameNs

Source code

public static bool IsXmlNameNs(string name)
Arguments
TypeNameDescription
stringnamethe 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
TypeNameDescription
charca 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
TypeNameDescription
stringvalue
boolforAttribute
boolescapeWhitespaces
RemoveControlChars

Source code

internal static string RemoveControlChars(string value)
Arguments
TypeNameDescription
stringvaluea node value
Summary

Replaces the ASCII control chars with a space.

Returns

Returns the cleaned up value

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.