Char.IsPunctuation Char.IsPunctuation Char.IsPunctuation Char.IsPunctuation Method

定義

Unicode 文字が区切り記号かどうかを示します。Indicates whether a Unicode character is categorized as a punctuation mark.

オーバーロード

IsPunctuation(Char) IsPunctuation(Char) IsPunctuation(Char) IsPunctuation(Char)

指定した Unicode 文字が区切り記号かどうかを示します。Indicates whether the specified Unicode character is categorized as a punctuation mark.

IsPunctuation(String, Int32) IsPunctuation(String, Int32) IsPunctuation(String, Int32) IsPunctuation(String, Int32)

指定した文字列の指定位置にある文字が区切り記号かどうかを示します。Indicates whether the character at the specified position in a specified string is categorized as a punctuation mark.

注釈

有効な区切り記号では、次のカテゴリのメンバーであるUnicodeCategory: ConnectorPunctuationDashPunctuationOpenPunctuationClosePunctuationInitialQuotePunctuationFinalQuotePunctuation、またはOtherPunctuationします。Valid punctuation marks are members of the following categories in UnicodeCategory: ConnectorPunctuation, DashPunctuation, OpenPunctuation, ClosePunctuation, InitialQuotePunctuation, FinalQuotePunctuation, or OtherPunctuation. 次の表に示す Unicode コード ポイントに文字が含まれます。They include characters with the Unicode code points listed in the following table.

U+0021 U + 0023 にU+0021 to U+0023 U + 060 C および U + 060 DU+060C and U+060D U + U + 180A を 1800U+1800 to U+180A U + U + 301F に 3014U+3014 to U+301F
U + U +002 に 0025U+0025 to U+002A U+061BU+061B U + 1944 および u+1945U+1944 and U+1945 U+3030U+3030
U + 002 C U + 002F をU+002C to U+002F U + 061E と U + 061FU+061E and U+061F U + 19DE と U + 19DFU+19DE and U+19DF U + 303DU+303D
U + 003A と U + 003BU+003A and U+003B U + U + 方位 066 d 066AU+066A to U+066D U + 1A1E と U +1 a1fU+1A1E and U+1A1F 30A0 U +U+30A0
U + 003F と U + 0040U+003F and U+0040 U+06D4U+06D4 U + U + 1B60 に 1B5AU+1B5A to U+1B60 U + 30FBU+30FB
U + U + 005-D を 005BU+005B to U+005D U + U + 070 d 0700U+0700 to U+070D U + U + 2027 に 2010U+2010 to U+2027 U + A874 U + A877 にU+A874 to U+A877
U+005FU+005F U + U + 07F9 に 07F7U+07F7 to U+07F9 U+2030 U + 2043 にU+2030 to U+2043 U + FD3E と U + FD3FU+FD3E and U+FD3F
U+007BU+007B U+0964 および u+0965U+0964 and U+0965 U + U + 2051 を 2045U+2045 to U+2051 U + FE19 に U+FE10U+FE10 to U+FE19
U+007DU+007D U+0970U+0970 U + U + 205E に 2053U+2053 to U+205E U + FE52 に U+FE30U+FE30 to U+FE52
U+00A1U+00A1 U+0DF4U+0DF4 U + 207 D および U + 207EU+207D and U+207E U + FE54 U + FE61 にU+FE54 to U+FE61
U+00ABU+00AB U + U + 0E5B に 0E4FU+0E4F to U+0E5B U + 208 D および U + 208EU+208D and U+208E U+FE63U+FE63
U + 00ADU+00AD U + U + 0F12 に 0F04U+0F04 to U+0F12 U + の 2329 と 232AU+2329 and U+232A U+FE68U+FE68
U+00B7U+00B7 U + U + 0F3D に 0F3AU+0F3A to U+0F3D U + U + 2775 に 2768U+2768 to U+2775 U + FE6A と U + FE6BU+FE6A and U+FE6B
U + 00BBU+00BB U+0F85U+0F85 U + 27C 6 U + 27C 5U+27C5 to U+27C6 U + FF01 U + FF03 にU+FF01 to U+FF03
U+00BFU+00BF U + 0FD0 と U + 0FD1U+0FD0 and U+0FD1 U + U + 27EB に 27E6U+27E6 to U+27EB U + FF05 U + FF0A にU+FF05 to U+FF0A
U+037EU+037E U + U + 104F に 104AU+104A to U+104F U + U + 2998 に 2983U+2983 to U+2998 U + FF0C U + FF0F にU+FF0C to U+FF0F
U+0387U+0387 U + 10FBU+10FB U + 29D 8 U + 29DB をU+29D8 to U+29DB U + FF1A と U + FF1BU+FF1A and U+FF1B
U + U + 055F に 055AU+055A to U+055F U + U + 1368 に 1361U+1361 to U+1368 U + 29 FC および U + 29FDU+29FC and U+29FD U + FF1F と U + FF20U+FF1F and U+FF20
U + の 0589 と 058AU+0589 and U+058A U + 166 D および U + 166EU+166D and U+166E U + U + 2CFC に 2CF9U+2CF9 to U+2CFC U + FF3B U + FF3D にU+FF3B to U+FF3D
U + 05BEU+05BE U + 169B および U + 169 CU+169B and U+169C U + 2CFE と U + 2CFFU+2CFE and U+2CFF U+FF3FU+FF3F
U+05C0U+05C0 U + U + 16ED に 16EBU+16EB to U+16ED U + U + 2E17 に 2E00U+2E00 to U+2E17 U+FF5BU+FF5B
U+05C3U+05C3 U+1735 および u+1736U+1735 and U+1736 U + 2E1C と U + 2E1DU+2E1C and U+2E1D U+FF5DU+FF5D
U+05C6U+05C6 U + 17D 4 U + 17D 6U+17D4 to U+17D6 U + U + 3003 を 3001U+3001 to U+3003 U + FF5F U + FF65 にU+FF5F to U+FF65
U + 05F3 と U + 05F4U+05F3 and U+05F4 U + 17D 8 U + 17DA をU+17D8 to U+17DA U + U + 3011 に 3008U+3008 to U+3011

IsPunctuation(Char) IsPunctuation(Char) IsPunctuation(Char) IsPunctuation(Char)

指定した Unicode 文字が区切り記号かどうかを示します。Indicates whether the specified Unicode character is categorized as a punctuation mark.

public:
 static bool IsPunctuation(char c);
public static bool IsPunctuation (char c);
static member IsPunctuation : char -> bool
Public Shared Function IsPunctuation (c As Char) As Boolean

パラメーター

c
Char Char Char Char

評価する Unicode 文字。The Unicode character to evaluate.

戻り値

true が区切り記号の場合は c。それ以外の場合は falsetrue if c is a punctuation mark; otherwise, false.

次のコード例に示しますIsPunctuationします。The following code example demonstrates IsPunctuation.

using namespace System;
int main()
{
   char ch = '.';
   Console::WriteLine( Char::IsPunctuation( ch ) ); // Output: "True"
   Console::WriteLine( Char::IsPunctuation(  "no punctuation", 3 ) ); // Output: "False"
}

using System;

public class IsPunctuationSample {
	public static void Main() {
		char ch = '.';

		Console.WriteLine(Char.IsPunctuation(ch));						// Output: "True"
		Console.WriteLine(Char.IsPunctuation("no punctuation", 3));		// Output: "False"
	}
}
Imports System

Module IsPunctuationSample

    Sub Main()

        Dim ch As Char
        ch = "."c

        Console.WriteLine(Char.IsPunctuation(ch))                   ' Output: "True"
        Console.WriteLine(Char.IsPunctuation("no punctuation", 3))  ' Output: "False"

    End Sub

End Module

注釈

有効な区切り記号では、次のカテゴリのメンバーであるUnicodeCategory: ConnectorPunctuationDashPunctuationOpenPunctuationClosePunctuationInitialQuotePunctuationFinalQuotePunctuation、またはOtherPunctuationします。Valid punctuation marks are members of the following categories in UnicodeCategory: ConnectorPunctuation, DashPunctuation, OpenPunctuation, ClosePunctuation, InitialQuotePunctuation, FinalQuotePunctuation, or OtherPunctuation. 次の表に示す Unicode コード ポイントに文字が含まれます。They include characters with the Unicode code points listed in the following table.

U+0021 U + 0023 にU+0021 to U+0023 U + 060 C および U + 060 DU+060C and U+060D U + U + 180A を 1800U+1800 to U+180A U + U + 301F に 3014U+3014 to U+301F
U + U +002 に 0025U+0025 to U+002A U+061BU+061B U + 1944 および u+1945U+1944 and U+1945 U+3030U+3030
U + 002 C U + 002F をU+002C to U+002F U + 061E と U + 061FU+061E and U+061F U + 19DE と U + 19DFU+19DE and U+19DF U + 303DU+303D
U + 003A と U + 003BU+003A and U+003B U + U + 方位 066 d 066AU+066A to U+066D U + 1A1E と U +1 a1fU+1A1E and U+1A1F 30A0 U +U+30A0
U + 003F と U + 0040U+003F and U+0040 U+06D4U+06D4 U + U + 1B60 に 1B5AU+1B5A to U+1B60 U + 30FBU+30FB
U + U + 005-D を 005BU+005B to U+005D U + U + 070 d 0700U+0700 to U+070D U + U + 2027 に 2010U+2010 to U+2027 U + A874 U + A877 にU+A874 to U+A877
U+005FU+005F U + U + 07F9 に 07F7U+07F7 to U+07F9 U+2030 U + 2043 にU+2030 to U+2043 U + FD3E と U + FD3FU+FD3E and U+FD3F
U+007BU+007B U+0964 および u+0965U+0964 and U+0965 U + U + 2051 を 2045U+2045 to U+2051 U + FE19 に U+FE10U+FE10 to U+FE19
U+007DU+007D U+0970U+0970 U + U + 205E に 2053U+2053 to U+205E U + FE52 に U+FE30U+FE30 to U+FE52
U+00A1U+00A1 U+0DF4U+0DF4 U + 207 D および U + 207EU+207D and U+207E U + FE54 U + FE61 にU+FE54 to U+FE61
U+00ABU+00AB U + U + 0E5B に 0E4FU+0E4F to U+0E5B U + 208 D および U + 208EU+208D and U+208E U+FE63U+FE63
U + 00ADU+00AD U + U + 0F12 に 0F04U+0F04 to U+0F12 U + の 2329 と 232AU+2329 and U+232A U+FE68U+FE68
U+00B7U+00B7 U + U + 0F3D に 0F3AU+0F3A to U+0F3D U + U + 2775 に 2768U+2768 to U+2775 U + FE6A と U + FE6BU+FE6A and U+FE6B
U + 00BBU+00BB U+0F85U+0F85 U + 27C 6 U + 27C 5U+27C5 to U+27C6 U + FF01 U + FF03 にU+FF01 to U+FF03
U+00BFU+00BF U + 0FD0 と U + 0FD1U+0FD0 and U+0FD1 U + U + 27EB に 27E6U+27E6 to U+27EB U + FF05 U + FF0A にU+FF05 to U+FF0A
U+037EU+037E U + U + 104F に 104AU+104A to U+104F U + U + 2998 に 2983U+2983 to U+2998 U + FF0C U + FF0F にU+FF0C to U+FF0F
U+0387U+0387 U + 10FBU+10FB U + 29D 8 U + 29DB をU+29D8 to U+29DB U + FF1A と U + FF1BU+FF1A and U+FF1B
U + U + 055F に 055AU+055A to U+055F U + U + 1368 に 1361U+1361 to U+1368 U + 29 FC および U + 29FDU+29FC and U+29FD U + FF1F と U + FF20U+FF1F and U+FF20
U + の 0589 と 058AU+0589 and U+058A U + 166 D および U + 166EU+166D and U+166E U + U + 2CFC に 2CF9U+2CF9 to U+2CFC U + FF3B U + FF3D にU+FF3B to U+FF3D
U + 05BEU+05BE U + 169B および U + 169 CU+169B and U+169C U + 2CFE と U + 2CFFU+2CFE and U+2CFF U+FF3FU+FF3F
U+05C0U+05C0 U + U + 16ED に 16EBU+16EB to U+16ED U + U + 2E17 に 2E00U+2E00 to U+2E17 U+FF5BU+FF5B
U+05C3U+05C3 U+1735 および u+1736U+1735 and U+1736 U + 2E1C と U + 2E1DU+2E1C and U+2E1D U+FF5DU+FF5D
U+05C6U+05C6 U + 17D 4 U + 17D 6U+17D4 to U+17D6 U + U + 3003 を 3001U+3001 to U+3003 U + FF5F U + FF65 にU+FF5F to U+FF65
U + 05F3 と U + 05F4U+05F3 and U+05F4 U + 17D 8 U + 17DA をU+17D8 to U+17DA U + U + 3011 に 3008U+3008 to U+3011
こちらもご覧ください

IsPunctuation(String, Int32) IsPunctuation(String, Int32) IsPunctuation(String, Int32) IsPunctuation(String, Int32)

指定した文字列の指定位置にある文字が区切り記号かどうかを示します。Indicates whether the character at the specified position in a specified string is categorized as a punctuation mark.

public:
 static bool IsPunctuation(System::String ^ s, int index);
public static bool IsPunctuation (string s, int index);
static member IsPunctuation : string * int -> bool
Public Shared Function IsPunctuation (s As String, index As Integer) As Boolean

パラメーター

s
String String String String

文字列。A string.

index
Int32 Int32 Int32 Int32

s 内の評価する文字の位置。The position of the character to evaluate in s.

戻り値

trueindex の位置にある文字が区切り記号の場合は s。それ以外の場合は falsetrue if the character at position index in s is a punctuation mark; otherwise, false.

例外

index が 0 未満の値か、s の最後の位置より大きい値です。index is less than zero or greater than the last position in s.

次のコード例に示しますIsPunctuationします。The following code example demonstrates IsPunctuation.

using namespace System;
int main()
{
   char ch = '.';
   Console::WriteLine( Char::IsPunctuation( ch ) ); // Output: "True"
   Console::WriteLine( Char::IsPunctuation(  "no punctuation", 3 ) ); // Output: "False"
}

using System;

public class IsPunctuationSample {
	public static void Main() {
		char ch = '.';

		Console.WriteLine(Char.IsPunctuation(ch));						// Output: "True"
		Console.WriteLine(Char.IsPunctuation("no punctuation", 3));		// Output: "False"
	}
}
Imports System

Module IsPunctuationSample

    Sub Main()

        Dim ch As Char
        ch = "."c

        Console.WriteLine(Char.IsPunctuation(ch))                   ' Output: "True"
        Console.WriteLine(Char.IsPunctuation("no punctuation", 3))  ' Output: "False"

    End Sub

End Module

注釈

文字列内の文字位置は 0 から始まるインデックスです。Character positions in a string are indexed starting from zero.

有効な区切り記号では、次のカテゴリのメンバーであるUnicodeCategory: ConnectorPunctuationDashPunctuationOpenPunctuationClosePunctuationInitialQuotePunctuationFinalQuotePunctuation、またはOtherPunctuationします。Valid punctuation marks are members of the following categories in UnicodeCategory: ConnectorPunctuation, DashPunctuation, OpenPunctuation, ClosePunctuation, InitialQuotePunctuation, FinalQuotePunctuation, or OtherPunctuation. 次の表に示す Unicode コード ポイントに文字が含まれます。They include characters with the Unicode code points listed in the following table.

U+0021 U + 0023 にU+0021 to U+0023 U + 060 C および U + 060 DU+060C and U+060D U + U + 180A を 1800U+1800 to U+180A U + U + 301F に 3014U+3014 to U+301F
U + U +002 に 0025U+0025 to U+002A U+061BU+061B U + 1944 および u+1945U+1944 and U+1945 U+3030U+3030
U + 002 C U + 002F をU+002C to U+002F U + 061E と U + 061FU+061E and U+061F U + 19DE と U + 19DFU+19DE and U+19DF U + 303DU+303D
U + 003A と U + 003BU+003A and U+003B U + U + 方位 066 d 066AU+066A to U+066D U + 1A1E と U +1 a1fU+1A1E and U+1A1F 30A0 U +U+30A0
U + 003F と U + 0040U+003F and U+0040 U+06D4U+06D4 U + U + 1B60 に 1B5AU+1B5A to U+1B60 U + 30FBU+30FB
U + U + 005-D を 005BU+005B to U+005D U + U + 070 d 0700U+0700 to U+070D U + U + 2027 に 2010U+2010 to U+2027 U + A874 U + A877 にU+A874 to U+A877
U+005FU+005F U + U + 07F9 に 07F7U+07F7 to U+07F9 U+2030 U + 2043 にU+2030 to U+2043 U + FD3E と U + FD3FU+FD3E and U+FD3F
U+007BU+007B U+0964 および u+0965U+0964 and U+0965 U + U + 2051 を 2045U+2045 to U+2051 U + FE19 に U+FE10U+FE10 to U+FE19
U+007DU+007D U+0970U+0970 U + U + 205E に 2053U+2053 to U+205E U + FE52 に U+FE30U+FE30 to U+FE52
U+00A1U+00A1 U+0DF4U+0DF4 U + 207 D および U + 207EU+207D and U+207E U + FE54 U + FE61 にU+FE54 to U+FE61
U+00ABU+00AB U + U + 0E5B に 0E4FU+0E4F to U+0E5B U + 208 D および U + 208EU+208D and U+208E U+FE63U+FE63
U + 00ADU+00AD U + U + 0F12 に 0F04U+0F04 to U+0F12 U + の 2329 と 232AU+2329 and U+232A U+FE68U+FE68
U+00B7U+00B7 U + U + 0F3D に 0F3AU+0F3A to U+0F3D U + U + 2775 に 2768U+2768 to U+2775 U + FE6A と U + FE6BU+FE6A and U+FE6B
U + 00BBU+00BB U+0F85U+0F85 U + 27C 6 U + 27C 5U+27C5 to U+27C6 U + FF01 U + FF03 にU+FF01 to U+FF03
U+00BFU+00BF U + 0FD0 と U + 0FD1U+0FD0 and U+0FD1 U + U + 27EB に 27E6U+27E6 to U+27EB U + FF05 U + FF0A にU+FF05 to U+FF0A
U+037EU+037E U + U + 104F に 104AU+104A to U+104F U + U + 2998 に 2983U+2983 to U+2998 U + FF0C U + FF0F にU+FF0C to U+FF0F
U+0387U+0387 U + 10FBU+10FB U + 29D 8 U + 29DB をU+29D8 to U+29DB U + FF1A と U + FF1BU+FF1A and U+FF1B
U + U + 055F に 055AU+055A to U+055F U + U + 1368 に 1361U+1361 to U+1368 U + 29 FC および U + 29FDU+29FC and U+29FD U + FF1F と U + FF20U+FF1F and U+FF20
U + の 0589 と 058AU+0589 and U+058A U + 166 D および U + 166EU+166D and U+166E U + U + 2CFC に 2CF9U+2CF9 to U+2CFC U + FF3B U + FF3D にU+FF3B to U+FF3D
U + 05BEU+05BE U + 169B および U + 169 CU+169B and U+169C U + 2CFE と U + 2CFFU+2CFE and U+2CFF U+FF3FU+FF3F
U+05C0U+05C0 U + U + 16ED に 16EBU+16EB to U+16ED U + U + 2E17 に 2E00U+2E00 to U+2E17 U+FF5BU+FF5B
U+05C3U+05C3 U+1735 および u+1736U+1735 and U+1736 U + 2E1C と U + 2E1DU+2E1C and U+2E1D U+FF5DU+FF5D
U+05C6U+05C6 U + 17D 4 U + 17D 6U+17D4 to U+17D6 U + U + 3003 を 3001U+3001 to U+3003 U + FF5F U + FF65 にU+FF5F to U+FF65
U + 05F3 と U + 05F4U+05F3 and U+05F4 U + 17D 8 U + 17DA をU+17D8 to U+17DA U + U + 3011 に 3008U+3008 to U+3011
こちらもご覧ください

適用対象