final class StringOps extends AnyVal
StringOps
- Version
1.0
- Since
2019-04-01 11:41
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- StringOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def camel: String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def hasText: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def newline: String
- Annotations
- @inline()
- def padEnd(length: Int, c: Char): String
给 string 在尾部补全长度
给 string 在尾部补全长度
"1".padEnd(5,'0') ==> "10000"
- length
最小的长度
- c
补充的字符
- def padStart(length: Int, c: Char): String
给 string 在头部补全长度
给 string 在头部补全长度
"1".padStart(5,'0') ==> "00001"
- length
最小长度
- c
补充的字符
- def repeat(count: Int): String
string 重复若干次
string 重复若干次
- count
重复次数
- def safeEqual(that: String): Boolean
- def subStringR(n: Int): String
后几位
后几位
- n
整数
- def toRadixInt(radix: Int): Int
- def toString(): String
- Definition Classes
- Any
- def underscores: String