Nobuyuki Iwanaga
Nobuyuki Iwanaga
The most important fact in the corefx#12425 is: > ReadByte/ReadInt16/ReadInt32 => BEXTR (possibly) I want to use the BEXTR instruction which executes `(src >> start) & ((1
This is just a memo. I guess these methods might be done by JIT intrinsics like `System.Numerics.Vectors`. I will use them if and only if the JIT-intrinsic version is released.
https://dotnet.myget.org/feed/dotnet-core/package/nuget/System.Runtime.Intrinsics.X86
Does the analyzer work? Do you get error on `Bit1 x = 2`? I supports only nuget 3 or higher, which means `packages.conf` isn't supported. Try using `PackageReference` in VS...
 If you use `packages.config` as default package management format, change it to `PackageReference`. Even if you use the latest NuGet.exe, NuGet stays old behavior with csproj containing `packages.config`.
umm... It works in my environment: https://github.com/ufcpp/BitFields/tree/master/tests/TargetFrameworks (However, the BitFields suppots only netstandard1.0, net45, netcore1.0 or higher.) It might be due to Visual Studio caches. Could you try removing `.vs`...
実は自分でもそう思っていたものの、「どうせ自分用に置いてるだけのものだからいいか」みたいな扱いです。 需要があったみたいなので直してもいいんですが… GraphemeSplitter 自体が「.NET 5 で標準の StringInfo がまっとうに書記素分割するようになったのでお役御免」みたいな立ち位置なのでできるお約束はできないかもです。
ちなみに、 http://ufcppfree.azurewebsites.net/Grapheme の元はこのリポジトリ内になく、 https://github.com/ufcpp/UfcppSample/blob/master/Tools/UnicodeService/UnicodeService/Pages/Grapheme.cshtml (置いてるリポジトリ名通り、サンプルのつもりだったもの) だったりします。
関連: https://github.com/ufcpp/UfcppSample/issues/265
ずいぶん昔に書いたコードな上に、当時全然テストコードを書いていなかったし、どう扱うかで悩み中です… (これを機にテストコードを増やしておくべきか等)