Module v.c.encoding

Part of vmc.common

No module docstring
Function int2hexstr Returns the hex representation of i
Function swap Convert a string of numbers into the semi-octet representation
Function pack_7bit_bytes pack_7bit_bytes("hellohello") => "E8329BFD4697D9EC37"
Function unpack_7bit_bytes Decode 7 bit character strings packed into 8 bit byte strings
Function pack_8bit_bytes Undocumented
Function pack_ucs2_bytes Undocumented
Function unpack_ucs2_bytes Undocumented
Function check_if_ucs2 Returns True if text is a string encoded in UCS2
Function from_u Undocumented
Function from_ucs2 Undocumented
Function to_u Returns a unicode object from s if s is not unicode already
def int2hexstr(i):
Returns the hex representation of i
Returns (type: str )
def swap(source):
Convert a string of numbers into the semi-octet representation described in GSM 03.40, 9.1.2.3
def pack_7bit_bytes(s):

pack_7bit_bytes("hellohello") => "E8329BFD4697D9EC37"

Packs a series of 7-bit bytes into 8-bit bytes and then to ASCII strings as hexidecimal. See GSM 03.40, 9.1.2.1
def unpack_7bit_bytes(octets):
Decode 7 bit character strings packed into 8 bit byte strings
def pack_8bit_bytes(s):
Undocumented
def pack_ucs2_bytes(s):
Undocumented
def unpack_ucs2_bytes(s):
Undocumented
def check_if_ucs2(text):
Returns True if text is a string encoded in UCS2
def from_u(s):
Undocumented
def from_ucs2(s):
Undocumented
def to_u(s):
Returns a unicode object from s if s is not unicode already
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.