本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
388B

  1. package cp
  2. // http://msdn.microsoft.com/en-us/library/dd340437.aspx
  3. type Collation struct {
  4. LcidAndFlags uint32
  5. SortId uint8
  6. }
  7. func (c Collation) getLcid() uint32 {
  8. return c.LcidAndFlags & 0x000fffff
  9. }
  10. func (c Collation) getFlags() uint32 {
  11. return (c.LcidAndFlags & 0x0ff00000) >> 20
  12. }
  13. func (c Collation) getVersion() uint32 {
  14. return (c.LcidAndFlags & 0xf0000000) >> 28
  15. }
上海开阖软件有限公司 沪ICP备12045867号-1