in lib/twitter_cldr/collation/implicit_collation_elements.rb [92:112]
def swapCJK(code_point)
if code_point >= CJK_BASE
return code_point - CJK_BASE if code_point < CJK_LIMIT
return code_point + NON_CJK_OFFSET if code_point < CJK_COMPAT_USED_BASE
return code_point - CJK_COMPAT_USED_BASE + (CJK_LIMIT - CJK_BASE) if code_point < CJK_COMPAT_USED_LIMIT
return code_point + NON_CJK_OFFSET if code_point < CJK_B_BASE
return code_point if code_point < CJK_B_LIMIT
return code_point + NON_CJK_OFFSET if code_point < CJK_C_BASE
return code_point if code_point < CJK_C_LIMIT
return code_point + NON_CJK_OFFSET if code_point < CJK_D_BASE
return code_point if code_point < CJK_D_LIMIT
return code_point + NON_CJK_OFFSET
end
return code_point + NON_CJK_OFFSET if code_point < CJK_A_BASE
return code_point - CJK_A_BASE + (CJK_LIMIT - CJK_BASE) + (CJK_COMPAT_USED_LIMIT - CJK_COMPAT_USED_BASE) if code_point < CJK_A_LIMIT
code_point + NON_CJK_OFFSET
end