Documentation ¶
Index ¶
Constants ¶
const ( OldCharset = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ" Charset = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" )
Variables ¶
This section is empty.
Functions ¶
func CheckCharacterSet ¶
CheckCharacterSet, given the same underlying C4 ID encoded in the old and new character sets, will return the version that is correctly encoded. A nil ID and an error are returned if either ID is invalid or the two ids are not an encoding of the same ID.
func NewCharsetIDToOld ¶
NewCharsetIDToOld transforms IDs from the correct, current character set to the old character set. This is not very useful outside of testing, so be sure you know what you're doing before using this function.
func OldCharsetIDToNew ¶
OldCharsetIDToNew transforms IDs from the incorrect (old) character set to the correct, and current one.
Be careful! This function cannot detect wither an ID uses the correct character set or not so care must be taken not to apply this function to IDs that are correct.
Types ¶
This section is empty.