DHJJ [Hatsune's Journal Japan] blog

Hatsune's Journal Japan blog

目次

Blog 利用状況

ニュース

最新ツイート

運営サイト

Hatsune's Journal Japan
DHJJ

著作など

資格など

OCP
MCP

書庫

日記カテゴリ

わんくま同盟

JIS X 0208コードかを判定する

JIS X 0208の文字かどうかを正規表現を使わずに文字コードの範囲で判定する例。

Public Function IsJISX0208(ByVal target As String) As Boolean
    Dim isOK As Boolean = True

    Dim byteTarget As Byte() = System.Text.Encoding.GetEncoding(932).GetBytes(StrConv(target, VbStrConv.Wide))

    For pos As Integer = 0 To byteTarget.Length - 1 Step 2
        If CLng("&H" & Hex(byteTarget(pos)) & Hex(byteTarget(pos + 1))) >= &H889F AndAlso _
           CLng("&H" & Hex(byteTarget(pos)) & Hex(byteTarget(pos + 1))) <= &H9872 Then
            '第一水準
        ElseIf CLng("&H" & Hex(byteTarget(pos)) & Hex(byteTarget(pos + 1))) >= &H989F AndAlso _
               CLng("&H" & Hex(byteTarget(pos)) & Hex(byteTarget(pos + 1))) <= &HEAA4 Then
            '第ニ水準
        ElseIf CLng("&H" & Hex(byteTarget(pos)) & Hex(byteTarget(pos + 1))) >= &H8140 AndAlso _
               CLng("&H" & Hex(byteTarget(pos)) & Hex(byteTarget(pos + 1))) <= &H849E Then
            '記号数字ひらがななど
        Else
            '上記範囲外か
            isOK = False
            Exit For
        End If
    Next
    Return isOK
End Function

投稿日時 : 2010年4月12日 10:49

Feedback

# help with essay papers b42jay 2022/09/03 21:04 Charlosmox


Amazing lots of valuable data. https://definitionessays.com/ maths homework help online

# how i can write essay x122mt 2022/09/08 18:28 AaronBlact


Helpful posts. Thanks a lot. https://definitionessays.com/ application essay for college

# cheap essay online v39nah 2022/09/08 19:59 Charlosmox


Perfectly voiced without a doubt! ! https://definitionessays.com/ buy essay papers cheap

# dissertation writing companies a445ve 2023/02/27 9:25 Robertsaids

You mentioned it terrifically!
dissertation abstract help https://dissertationwritingtops.com/ proquest dissertations

# implied thesis m654ba 2023/03/03 7:04 Josephbried


Nicely put, With thanks!
thesis editing https://writingthesistops.com/ thesiss

# how to write a transfer essay e28nws 2023/03/06 12:49 EugeneSib


Wow lots of very good data!
how to write a summary essay https://essaywritingservicehelp.com dissertation writing https://essaywriting4you.com

# i need help writing my personal statement u558lo 2023/03/06 21:29 Gregorysaipt

You mentioned that adequately.
college entrance essay writing service https://essaywritinghelperonline.com mba dissertation writing https://essaywritingservicebbc.com

# how to write the best essay ever b41njq 2023/03/07 18:57 EugeneSib


Regards. I enjoy this.
researching and writing a dissertation https://topswritingservices.com how to find college essay prompts https://essaytyperhelp.com

# english essay help online j245cv 2023/03/09 3:21 EugeneSib


Truly all kinds of excellent material!
press release writing service https://essaywritingservicebbc.com marketing dissertation https://homeworkcourseworkhelps.com

# college essay idea a382oa 2023/03/10 13:26 Gregorysaipt

You explained it exceptionally well!
dissertation to book https://writingresearchtermpaperservice.com writing essay scholarships https://essaywriting4you.com

# how to write a good personal essay l550gq 2023/03/11 11:16 Gregorysaipt


Fantastic content. Kudos.
exemplary college essays https://writeadissertation.com how to write a good introduction to an essay https://researchproposalforphd.com

# online essay helper v269mg 2023/03/12 20:02 EugeneSib


Really a lot of amazing data.
essay editing service online https://homeworkcourseworkhelps.com college supplemental essays https://writingresearchtermpaperservice.com

# research for dissertation m79iip 2023/03/13 10:39 EugeneSib


Kudos, I enjoy it.
writing my dissertation https://service-essay.com custom essays usa https://bestpaperwritingservice.com

# college compare and contrast essay l66egm 2023/03/14 1:27 EugeneSib


Truly many of useful info.
essay service cheap https://helpwithdissertationwriting.com how to write personal essays https://helptowriteanessay.com

# dissertation consultants l32upb 2023/04/01 7:33 EugeneSib

You actually mentioned it superbly!
college essay idea https://helptowriteanessay.com the help by kathryn stockett essay https://helptowriteanessay.com

# The plugins developed for WordPress 2023/05/10 0:27 Justas

The plugins developed for WordPress serve to enhance the features and functions of a WordPress website, allowing you to build your awesome and functional site https://t.me/wpigaming/648 Customise WordPress with powerful, professional and intuitive fields.

タイトル  
名前  
Url
コメント