Dismiss Notice

REGISTRATION IS AFTER ADMIN ACTIVATION

DONATIONS WITH PAYPAL CLICK TO BUTTON

1 MONTH VIP - 5$; 3 MONTHS VIP - 10$; 6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$

DONATIONS WITH Bitcoin Address:3NRs3CK3fhXifrNYxHEZKpETDd9vNLMsMD

Dismiss Notice
The registration is approved by the Administrator. It takes about 1 day to approve your registration
Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

MECSUtils ver1.56

Discussion in 'Delphi Components' started by N0body, Feb 21, 2014.

  1. N0body
    Online

    N0bodyN0body is a Verified Member DelphiFan Administrator Staff Member DF Staff

    MECSUtils unit constains several functions and classes to support international characters with AnsiString/UnicodeString/WideString.

    # Please check source code for detail.

    Classes:
    ---------------------
    - PUnicodeChar(*1)
    - PUTF8Char
    - TEastAsianWidth
    - TElementType
    - TIndexCount
    - TLeadBytes
    - TNORM_FORM
    - UnicodeChar(*1)
    - UTF8Char
    - TCombiningType
    - TBytes(*3)

    Variables:
    ---------------------
    - DefaultAnsiCodePage
    - DefaultOEMCodePage
    - DefaultLCID

    Functions/Procedures:
    ---------------------

    [Codepage/CharSet/Locale]
    - CodePageToFontCharset
    - FontCharsetToCodePage
    - IsFarEastCharSet
    - IsFarEastLCID

    [TBytes]
    - MecsAnsiBytesOf
    - MecsAnsiStringOf
    - MecsBytesOf
    - MecsStringOf
    - MecsWideBytesOf
    - MecsWideStringOf

    [AnsiString]
    - MecsGetCodePage
    - MecsGetLeadBytes
    - MecsShrinkElement
    - MecsStretchElement

    [UnicodeString/WideString]
    - MecsEastAsianWidth
    - MecsIsNormalized
    - MecsMappingFix_CP932ToUnicode
    - MecsMappingFix_JISX0208ToJISX0213
    - MecsMappingFix_JISX0208ToUnicode
    - MecsMappingFix_JISX0213ToJISX0208
    - MecsMappingFix_UnicodeToCP932 <- Mod 1.54
    - MecsMappingFix_UnicodeToJISX0208 <- Mod 1.54
    - MecsNormalize
    - MecsStringWidth <- Add 1.53
    - StrLen(*2)
    - StrPos(*2) <- Add 1.55

    [Common]
    - MecsAnsiPos <- Add 1.55
    - MecsAnsiPosEx <- Add 1.55
    - MecsAnsiStrPos <- Add 1.55
    - MecsCharLength
    - MecsCharToElementIndex
    - MecsCharToElementIndexCount
    - MecsCharToElementLen
    - MecsCopy
    - MecsDelete
    - MecsElementToCharIndex
    - MecsElementToCharLen
    - MecsElementType
    - MecsInsert
    - MecsIsFullWidth
    - MecsIsLeadElement
    - MecsIsMECElement
    - MecsIsTrailElement
    - MecsLeftStr
    - MecsLength
    - MecsMidStr
    - MecsNextCharIndex
    - MecsReverseString
    - MecsRightStr
    - MecsStrCharLength
    - MecsStrConv <- Add 1.50
    - MecsStrElementType
    - MecsStrLen
    - MecsStrNextChar

    [Combining Character Sequence]
    - MecsCCSLength
    - MecsCCSToElementIndex
    - MecsCCSToElementLen
    - MecsCombiningType
    - MecsCopyC
    - MecsDeleteC
    - MecsElementToCCSIndex
    - MecsElementToCCSLen
    - MecsInsertC
    - MecsLeftStrC
    - MecsLengthC
    - MecsMidStrC
    - MecsNextCCSIndex
    - MecsReverseStringC
    - MecsRightStrC
    - MecsStrCCSLength
    - MecsStrLenC
    - MecsStrNextCCS

    [Convert]
    - AnsiToUTF32
    - AnsiToUTF16
    - AnsiToUTF8
    - CodePointToUTF16
    - CodePointToUTF8
    - ConvertMultiByteToUnicode
    - ConvertString
    - ConvertUnicodeToMultiByte
    - TrimNullTerm
    - UTF32ToAnsi
    - UTF32ToUTF16
    - UTF32ToUTF8
    - UTF16ToAnsi
    - UTF16ToUTF32
    - UTF16ToUTF8
    - UTF8ToAnsi
    - UTF8ToUTF32
    - UTF8ToUTF16

    HTML:
    - MecsCodePageToCharset <- Add 1.52
    - MecsCharsetToCodepage <- Add 1.52
    - MecsHTMLDecode <- Add 1.51
    - MecsHTMLEncode <- Add 1.51
    
    *1 D2009 or later
    *2 D2007 or before
    *3 D2006 or before
    
    Example:
    
    var
    A: AnsiString;
    B: UTF8String;
    begin
    A := '11?22?33?44';
    A := MecsCopy(A, 1, 5); // '11?22'
    B := AnsiToUTF8(A);
    B := MecsCopy(B, 2, 2, CP_UTF8); // '1?'
    ShowMessage(IntToStr(MecsLength(B, CP_UTF8))); // return '2'
    end;
    
    # '?' is Multi-byte charcter.
    
    [url=https://mega.co.nz/#!3JgWHKDC!O43JkQFCOZ4D7O6UDXOZ8fDiJpG97dlqlK5P9rWkaII]Download Here[/url]
     

Share This Page

Laws
Our website, law, laws, copyright and aims to be respectful of individual rights. Our site, as defined in the law of 5651 serves as a provider of space. According to the law, contrary to the law of site management has no obligation to monitor content. Therefore, our site has adopted the principle of fit and remove. Works are subject to copyright laws and is shared in a manner that violated their legal rights, or professional associations, rights holders who, adsdelphi@gmail.com I can reach us at e-mail address. Complaints considered to be infringing on the examination of the content will be removed from our site.
Donate Help To Us and Be VIP
DONATIONS WITH PAYPAL CLICK TO BUTTON
6 MONTHS VIP - 20$; 1 YEAR VIP - 30$; 2 YEARS VIP - 50$; GOLD USER FOR LIFE VIP - 150$
Social Block