class StringMaybeTruncateCharactersUnparser extends StringSpecifiedLengthUnparserTruncateBase
Truncates strings to the right length measured in characters.
LengthUnits is 'characters', but we still don't know what encoding so whether it is fixed or variable width.
What's interesting is that we don't care whether the encoding is fixed or variable width in this case.
This is more efficient for variable-width encodings than lengthUnits 'bytes' (or bits), because we don't need a pass to measure the number of bits.
So, for utf-8, we should recommend lengthUnits 'characters' ? Maybe so.
- Alphabetic
- By Inheritance
- StringMaybeTruncateCharactersUnparser
- StringSpecifiedLengthUnparserTruncateBase
- StringSpecifiedLengthUnparserBase
- TextPrimUnparser
- TextProcessor
- PrimUnparser
- PrimProcessor
- Unparser
- Processor
- Serializable
- Serializable
- ToBriefXMLImpl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new StringMaybeTruncateCharactersUnparser(lengthInCharactersEv: LengthEv, stringTruncationType: Type, erd: ElementRuntimeData)
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
UE(ustate: UState, s: String, args: Any*): Nothing
- Definition Classes
- Unparser
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
briefXMLAttributes: String
- Attributes
- protected
- Definition Classes
- ToBriefXMLImpl
-
def
childProcessors: Vector[Processor]
- Definition Classes
- PrimProcessor → Processor → ToBriefXMLImpl
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contentString(state: UState): String
override in nil specified length unparsers
override in nil specified length unparsers
- Attributes
- protected
- Definition Classes
- StringSpecifiedLengthUnparserBase
-
def
context: ElementRuntimeData
- Definition Classes
- StringSpecifiedLengthUnparserBase → Unparser → Processor
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
erd: ElementRuntimeData
- Definition Classes
- StringSpecifiedLengthUnparserBase
-
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()
-
def
isEmpty: Boolean
- Definition Classes
- Unparser → Processor
-
val
isInitialized: Boolean
- Definition Classes
- Processor
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrimitive: Boolean
- Definition Classes
- PrimProcessor → Processor
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nom: String
- Definition Classes
- ToBriefXMLImpl
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
runtimeDependencies: Vector[LengthEv]
- Definition Classes
- StringMaybeTruncateCharactersUnparser → Processor
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toBriefXML(depthLimit: Int): String
- Definition Classes
- ToBriefXMLImpl
-
def
toString(): String
- Definition Classes
- ToBriefXMLImpl → AnyRef → Any
-
final
def
truncateByJustification(ustate: UState, str: String, nChars: Long): String
We only truncate strings, and only if textStringJustification is left or right, and only if truncateSpecifiedLengthString is yes.
We only truncate strings, and only if textStringJustification is left or right, and only if truncateSpecifiedLengthString is yes.
- Attributes
- protected
- Definition Classes
- StringSpecifiedLengthUnparserTruncateBase
-
def
unparse(state: UState): Unit
- Definition Classes
- StringMaybeTruncateCharactersUnparser → Unparser
-
final
def
unparse1(ustate: UState, ignore: AnyRef): Unit
- Definition Classes
- Unparser
-
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()