Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

READMEにIsAsciiメソッドに関する説明を追加 #97

Merged
merged 1 commit into from
Nov 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@ var array = new Utf8Array("abc");
// バイト数
var byteCount = array.ByteCount;

// 空かどうか
var isEmpty = array.IsEmpty;

// 文字数
var length = array.GetLength();

// 空かどうか
var isEmpty = array.IsEmpty;

// 空か空白文字列かどうか
var isEmptyOrWhiteSpace = array.IsEmptyOrWhiteSpace();

// Ascii文字列かどうか
var isAscii = array.IsAscii();

// 内部配列への参照
ref var start = ref array.DangerousGetReference();

Expand All @@ -69,6 +72,10 @@ ref var dictStart = ref dict.GetValueRefOrNullRef(array);

dict.TryAdd(array, 1);
dict.Clear();

// Ascii文字列かどうか
var span = array.AsSpan();
var isAscii = UnicodeUtility.IsAscii(span);
```

## サポートフレームワーク
Expand Down