class WhitespacePreprocessor extends (String) ⇒ String
Processes whitespace, removing or replacing most whitespace characters except for newline and space.
It modifies string input in the following ways:
- Replaces all occurrences of tabs with the corresponding number of spaces,
depending on the column the tab is placed in and the configured
tabStops
value. - Removes any return character.
- Replaces form feed and vertical tab with spaces.
The processor should run on text input before it is passed to the actual parsers as they would not be able to deal with tabs properly.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WhitespacePreprocessor
- Function1
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new WhitespacePreprocessor()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
andThen[A](g: (String) ⇒ A): (String) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(input: String): String
Processes whitespace, removing or replacing most whitespace characters except for newline and space.
Processes whitespace, removing or replacing most whitespace characters except for newline and space.
- Definition Classes
- WhitespacePreprocessor → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ String): (A) ⇒ String
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
tabStops: Int
The number of columns between tab stops.
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()