BitStrings

org.beangle.commons.lang.BitStrings
object BitStrings

BitStrings class.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BitStrings.type

Members list

Value members

Concrete methods

def and(first: String, second: String): String

比较两个等长字符串的每一位,若都大于0,则返回结果的相应位为1,否则为0;

比较两个等长字符串的每一位,若都大于0,则返回结果的相应位为1,否则为0;

Value parameters

first

a String.

second

a String.

Attributes

Returns

a String.

def andWith(str: String, boolString: String): String

将一个字符串,按照boolString的形式进行变化. 如果boolString[i]!=0则保留str[i],否则置0

将一个字符串,按照boolString的形式进行变化. 如果boolString[i]!=0则保留str[i],否则置0

Value parameters

boolString

a String.

str

a String.

Attributes

Returns

a String.

def binValueOf(binaryStr: String): Long

返回零一串的整型值

返回零一串的整型值

Value parameters

binaryStr

a String object.

Attributes

Returns

a long.

def convertToBoolStr(first: String): String

将"314213421340asdf"转换成"1111111111101111"

将"314213421340asdf"转换成"1111111111101111"

Value parameters

first

a String object.

Attributes

Returns

a String object.

def or(first: String, second: String): String

比较两个等长字符串的每一位,相或
适用于仅含有1和0的字符串.

比较两个等长字符串的每一位,相或
适用于仅含有1和0的字符串.

Value parameters

first

a String.

second

a String.

Attributes

Returns

a String.

def reverse(binaryStr: String): String

Reverse.

Reverse.

Value parameters

binaryStr

a String object.

Attributes

Returns

a String object.