nuits.jp blog

C#, Xamarin, WPFを中心に書いています。Microsoft MVP for Development Technologies。

C#

全角・半角判定ライブラリ EastAsianWidthDotNet をリリースしました

Unicode文字列の全角・半角を判定し、文字列の幅を取得するライブラリ「EastAsianWidthDotNet 」をNuGetに公開しました。 github.com こんな感じで呼び出すと… using EastAsianWidthDotNet; ... var width = "全角.".GetWidth(); Console.WriteLine($"Width …

GitHubのReleaseのダウンロード数をカウントする

私の自慢のCopy to Markdown Add-Inは3,331ダウンロードされているようです。ヘヘヘ。 GitHub APIを利用して、GitHubのリポジトリのreleaseで公開しているモジュールのダウンロード数をカウントします。 gist.github.com GithHub APIの使い方についてはこちらを…