Rev 6128 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6128 | Rev 9631 | ||
---|---|---|---|
Line 32... | Line 32... | ||
32 | endp |
32 | endp |
Line 33... | Line 33... | ||
33 | 33 | ||
34 | 34 | ||
- | 35 | ; calculate amount of valid chars in UTF-8 string |
|
35 | ; calculate amount of valid chars in UTF-8 string |
36 | ; supports zero terminated string (set byteQuantity = -1) |
36 | ; supports zero terminated string (set byteQuantity = -1) |
37 | cntUTF_8: ;old function name |
37 | proc countUTF8, string, byteQuantity |
38 | proc countUTF8Z, string, byteQuantity |
38 | push esi |
39 | push esi |
39 | mov edx,[byteQuantity] |
40 | mov edx,[byteQuantity] |
40 | inc edx |
41 | inc edx |
Line 648... | Line 649... | ||
648 | ret |
649 | ret |
Line 649... | Line 650... | ||
649 | 650 | ||
650 | align 4 |
651 | align 4 |
651 | @EXPORT: |
652 | @EXPORT: |
- | 653 | export drawText, 'drawText', \ |
|
652 | export drawText, 'drawText', \ |
654 | cntUTF_8, 'cntUTF-8', \ ;old function name |
653 | countUTF8, 'cntUTF-8', \ |
655 | countUTF8Z, 'countUTF8Z', \ |
654 | charsFit, 'charsFit', \ |
656 | charsFit, 'charsFit', \ |