Table of Contents

Class PortUtil

Namespace
iText.StyledXmlParser
Assembly
itext.styledxmlparser.dll

This file is a helper class for internal usage only. Be aware that its API and functionality may be changed in future.

public class PortUtil
Inheritance
PortUtil
Inherited Members

Methods

CreateRegexPatternWithDotMatchingNewlines(string)

By default "." symbol in regular expressions does not match line terminators. The issue is more complicated by the fact that "." does not match only "\n" in C#, while it does not match several other characters as well in Java. This utility method creates a pattern in which dots match any character, including line terminators

public static Regex CreateRegexPatternWithDotMatchingNewlines(string regex)

Parameters

regex string

regular expression string

Returns

Regex

pattern in which dot characters match any Unicode char, including line terminators

WrapInBufferedReader(TextReader)

public static TextReader WrapInBufferedReader(TextReader inputStreamReader)

Parameters

inputStreamReader TextReader

Returns

TextReader