Top Description Fields Constructors Methods
de.undercouch.citeproc.helper

public Class FrenchPunctuationSpacing

extends Object
Class Inheritance
Imports
java.util.regex.Pattern

Applies rules of French punctuation spacing.

See the following links for reference:

Note

We are following the rules described in the second link above. The sources collected are more convincing than the implementation in citeproc-js.

Author
Michel Kraemer

Field Summary

Modifier and TypeField and Description
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the processed string
apply
(String
the input string
str
)

Apply rules of French punctuation spacing

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SPACE_AFTER_LEFT_GUILLEMETback to summary
private static final Pattern SPACE_AFTER_LEFT_GUILLEMET
SPACE_BEFORE_PUNCTUATIONback to summary
private static final Pattern SPACE_BEFORE_PUNCTUATION
SPACE_BEFORE_RIGHT_GUILLEMETback to summary
private static final Pattern SPACE_BEFORE_RIGHT_GUILLEMET
SPACES_AROUND_COLONback to summary
private static final Pattern SPACES_AROUND_COLON

Constructor Detail

FrenchPunctuationSpacingback to summary
public FrenchPunctuationSpacing()

Method Detail

applyback to summary
public static String apply(String str)

Apply rules of French punctuation spacing

Parameters
str:String

the input string

Returns:String

the processed string