翻訳への提案を行います
 
他のユーザーによる提案:

progress indicator
他の提案はありません。
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
.NET 開発
.NET Framework 4
Microsoft.VisualBasic 名前空間
Microsoft.VisualBasic
Strings クラス
すべて縮小/すべて展開 すべて縮小
コンテンツの表示:   英語と日本語を並べて表示コンテンツの表示: 英語と日本語を並べて表示
.NET Framework Class Library
Strings Class

The Strings module contains procedures used to perform string operations.

System..::.Object
  Microsoft.VisualBasic..::.Strings

Namespace:  Microsoft.VisualBasic
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Visual Basic
<StandardModuleAttribute> _
Public NotInheritable Class Strings
C#
[StandardModuleAttribute]
public sealed class Strings
Visual C++
[StandardModuleAttribute]
public ref class Strings sealed
F#
[<Sealed>]
[<StandardModuleAttribute>]
type Strings =  class end

The Strings type exposes the following members.

  NameDescription
Public methodStatic memberAsc(Char)Returns an Integer value representing the character code corresponding to a character.
Public methodStatic memberAsc(String)Returns an Integer value representing the character code corresponding to a character.
Public methodStatic memberAscW(Char)Returns an Integer value representing the character code corresponding to a character.
Public methodStatic memberAscW(String)Returns an Integer value representing the character code corresponding to a character.
Public methodStatic memberChrReturns the character associated with the specified character code.
Public methodStatic memberChrWReturns the character associated with the specified character code.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodStatic memberFilter(array<Object>[]()[], String, Boolean, CompareMethod)Returns a zero-based array containing a subset of a String array based on specified filter criteria.
Public methodStatic memberFilter(array<String>[]()[], String, Boolean, CompareMethod)Returns a zero-based array containing a subset of a String array based on specified filter criteria.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberFormatReturns a string formatted according to instructions contained in a format String expression.
Public methodStatic memberFormatCurrencyReturns an expression formatted as a currency value using the currency symbol defined in the system control panel.
Public methodStatic memberFormatDateTimeReturns a string expression representing a date/time value.
Public methodStatic memberFormatNumberReturns an expression formatted as a number.
Public methodStatic memberFormatPercentReturns an expression formatted as a percentage (that is, multiplied by 100) with a trailing % character.
Public methodStatic memberGetCharReturns a Char value representing the character from the specified index in the supplied string.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberInStr(String, String, CompareMethod)Returns an integer specifying the start position of the first occurrence of one string within another.
Public methodStatic memberInStr(Int32, String, String, CompareMethod)Returns an integer specifying the start position of the first occurrence of one string within another.
Public methodStatic memberInStrRevReturns the position of the first occurrence of one string within another, starting from the right side of the string.
Public methodStatic memberJoin(array<Object>[]()[], String)Returns a string created by joining a number of substrings contained in an array.
Public methodStatic memberJoin(array<String>[]()[], String)Returns a string created by joining a number of substrings contained in an array.
Public methodStatic memberLCase(Char)Returns a string or character converted to lowercase.
Public methodStatic memberLCase(String)Returns a string or character converted to lowercase.
Public methodStatic memberLeftReturns a string containing a specified number of characters from the left side of a string.
Public methodStatic memberLen(Boolean)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Byte)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Char)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(DateTime)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Decimal)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Double)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Int16)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Int32)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Int64)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Object)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(SByte)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(Single)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(String)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(UInt16)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(UInt32)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLen(UInt64)Returns an integer containing either the number of characters in a string or the nominal number of bytes required to store a variable.
Public methodStatic memberLSetReturns a left-aligned string containing the specified string adjusted to the specified length.
Public methodStatic memberLTrimReturns a string containing a copy of a specified string with no leading spaces (LTrim), no trailing spaces (RTrim), or no leading or trailing spaces (Trim).
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberMid(String, Int32)Returns a string containing a specified number of characters from a string.
Public methodStatic memberMid(String, Int32, Int32)Returns a string containing a specified number of characters from a string.
Public methodStatic memberReplaceReturns a string in which a specified substring has been replaced with another substring a specified number of times.
Public methodStatic memberRightReturns a string containing a specified number of characters from the right side of a string.
Public methodStatic memberRSetReturns a right-aligned string containing the specified string adjusted to the specified length.
Public methodStatic memberRTrimReturns a string containing a copy of a specified string with no leading spaces (LTrim), no trailing spaces (RTrim), or no leading or trailing spaces (Trim).
Public methodStatic memberSpaceReturns a string consisting of the specified number of spaces.
Public methodStatic memberSplitReturns a zero-based, one-dimensional array containing a specified number of substrings.
Public methodStatic memberStrCompReturns -1, 0, or 1, based on the result of a string comparison.
Public methodStatic memberStrConvReturns a string converted as specified.
Public methodStatic memberStrDup(Int32, Char)Returns a string or object consisting of the specified character repeated the specified number of times.
Public methodStatic memberStrDup(Int32, Object)Returns a string or object consisting of the specified character repeated the specified number of times.
Public methodStatic memberStrDup(Int32, String)Returns a string or object consisting of the specified character repeated the specified number of times.
Public methodStatic memberStrReverseReturns a string in which the character order of a specified string is reversed.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodStatic memberTrimReturns a string containing a copy of a specified string with no leading spaces (LTrim), no trailing spaces (RTrim), or no leading or trailing spaces (Trim).
Public methodStatic memberUCase(Char)Returns a string or character containing the specified string converted to uppercase.
Public methodStatic memberUCase(String)Returns a string or character containing the specified string converted to uppercase.
Top

This module supports the Visual Basic language keywords and run-time library members that manipulate strings.

The following example demonstrates how to split a string at its spaces.

Visual Basic
Dim TestString As String = "Look at these!"
' Returns an array containing "Look", "at", and "these!".
Dim TestArray() As String = Split(TestString)

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.NET Framework クラス ライブラリ
Strings クラス

Strings モジュールに含まれるプロシージャを使って、文字列操作を実行します。

System..::.Object
  Microsoft.VisualBasic..::.Strings

名前空間:  Microsoft.VisualBasic
アセンブリ:  Microsoft.VisualBasic (Microsoft.VisualBasic.dll 内)
Visual Basic
<StandardModuleAttribute> _
Public NotInheritable Class Strings
C#
[StandardModuleAttribute]
public sealed class Strings
Visual C++
[StandardModuleAttribute]
public ref class Strings sealed
F#
[<Sealed>]
[<StandardModuleAttribute>]
type Strings =  class end

Strings 型で公開されるメンバーは以下のとおりです。

  名前説明
パブリック メソッド静的メンバーAsc(Char)文字に対応する文字コードを表す Integer 値を返します。
パブリック メソッド静的メンバーAsc(String)文字に対応する文字コードを表す Integer 値を返します。
パブリック メソッド静的メンバーAscW(Char)文字に対応する文字コードを表す Integer 値を返します。
パブリック メソッド静的メンバーAscW(String)文字に対応する文字コードを表す Integer 値を返します。
パブリック メソッド静的メンバーChr指定された文字コードに対応する文字を返します。
パブリック メソッド静的メンバーChrW指定された文字コードに対応する文字を返します。
パブリック メソッドEquals(Object)指定した Object が、現在の Object と等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド静的メンバーFilter(array<Object>[]()[], String, Boolean, CompareMethod)指定されたフィルター条件に基づいた String 配列のサブセットを含む、インデックス番号が 0 から始まる配列を返します。
パブリック メソッド静的メンバーFilter(array<String>[]()[], String, Boolean, CompareMethod)指定されたフィルター条件に基づいた String 配列のサブセットを含む、インデックス番号が 0 から始まる配列を返します。
プロテクト メソッドFinalizeオブジェクトがガベジ コレクションにより収集される前に、そのオブジェクトがリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。)
パブリック メソッド静的メンバーFormat書式指定文字列 (String) 式に含まれる指示に従って書式設定された文字列を返します。
パブリック メソッド静的メンバーFormatCurrencyシステムの [コントロール パネル] で定義されている通貨記号を使って通貨形式の文字列に書式設定して返す文字列処理関数です。
パブリック メソッド静的メンバーFormatDateTime日時の値を表す文字列式を返します。
パブリック メソッド静的メンバーFormatNumber数値形式の文字列に書式設定して返す文字列処理関数です。
パブリック メソッド静的メンバーFormatPercentパーセント記号 (%) が付加されたパーセント形式 (100 で乗算した) の文字列に書式設定して返す文字列処理関数です。
パブリック メソッド静的メンバーGetChar指定された文字列の指定されたインデックス位置にある文字を表す Char 値を返します。
パブリック メソッドGetHashCode特定の型のハッシュ関数として機能します。 (Object から継承されます。)
パブリック メソッドGetType現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド静的メンバーInStr(String, String, CompareMethod)ある文字列の中から指定した文字列を検索し、最初に見つかった文字列の開始位置を示す整数型 (Integer) の値を返します。
パブリック メソッド静的メンバーInStr(Int32, String, String, CompareMethod)ある文字列の中から指定した文字列を検索し、最初に見つかった文字列の開始位置を示す整数型 (Integer) の値を返します。
パブリック メソッド静的メンバーInStrRevある文字列 (StringCheck) の中から指定された文字列 (StringMatch) を最後の文字位置から検索を開始し、最初に見つかった文字位置 (先頭からその位置までの文字数) を返します。
パブリック メソッド静的メンバーJoin(array<Object>[]()[], String)配列に含まれる多数の部分文字列を結合して作成される文字列を返します。
パブリック メソッド静的メンバーJoin(array<String>[]()[], String)配列に含まれる多数の部分文字列を結合して作成される文字列を返します。
パブリック メソッド静的メンバーLCase(Char)小文字に変換した文字列または文字を返します。
パブリック メソッド静的メンバーLCase(String)小文字に変換した文字列または文字を返します。
パブリック メソッド静的メンバーLeft指定された文字数を含む文字列を返します。
パブリック メソッド静的メンバーLen(Boolean)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Byte)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Char)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(DateTime)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Decimal)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Double)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Int16)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Int32)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Int64)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Object)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(SByte)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(Single)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(String)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(UInt16)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(UInt32)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLen(UInt64)文字列内の文字数または変数を格納するために必要な公称バイト数を表す整数を返します。
パブリック メソッド静的メンバーLSet指定の文字列が含まれている文字列を左寄せで指定の長さに調整して返します。
パブリック メソッド静的メンバーLTrim指定された文字列から、先頭の空白を除いたコピー (LTrim)、後続の空白を除いたコピー (RTrim)、または先頭と後続の空白を除いたコピー (Trim) を格納する文字列を返します。
プロテクト メソッドMemberwiseClone現在の Object の簡易コピーを作成します。 (Object から継承されます。)
パブリック メソッド静的メンバーMid(String, Int32)文字列から指定された文字数分の文字列を返します。
パブリック メソッド静的メンバーMid(String, Int32, Int32)文字列から指定された文字数分の文字列を返します。
パブリック メソッド静的メンバーReplace指定された文字列の一部を指定された回数分別の部分文字列で置換した文字列を返します。
パブリック メソッド静的メンバーRight文字列の右端から指定された文字数分の文字列を返します。
パブリック メソッド静的メンバーRSet文字列と長さが指定され、その長さに調整された文字列右揃えにして文字列を返します。
パブリック メソッド静的メンバーRTrim指定された文字列から、先頭の空白を除いたコピー (LTrim)、後続の空白を除いたコピー (RTrim)、または先頭と後続の空白を除いたコピー (Trim) を格納する文字列を返します。
パブリック メソッド静的メンバーSpace指定された数のスペースから成る文字列を返します。
パブリック メソッド静的メンバーSplit部分文字列ごとに区切られた文字列からゼロ ベースの 1 次元配列を作成し、返します。
パブリック メソッド静的メンバーStrComp文字列比較の結果により、-1、0、または 1 のいずれかを返します。
パブリック メソッド静的メンバーStrConv指定に従って変換された文字列型 (String) の値を返します。
パブリック メソッド静的メンバーStrDup(Int32, Char)指定された文字が指定された回数繰り返されている文字列型 (String) またはオブジェクト型 (Object) の値を返します。
パブリック メソッド静的メンバーStrDup(Int32, Object)指定された文字が指定された回数繰り返されている文字列型 (String) またはオブジェクト型 (Object) の値を返します。
パブリック メソッド静的メンバーStrDup(Int32, String)指定された文字が指定された回数繰り返されている文字列型 (String) またはオブジェクト型 (Object) の値を返します。
パブリック メソッド静的メンバーStrReverse指定された文字列の文字の並び順を逆にした文字列を返します。
パブリック メソッドToString現在のオブジェクトを表す文字列を返します。 (Object から継承されます。)
パブリック メソッド静的メンバーTrim指定された文字列から、先頭の空白を除いたコピー (LTrim)、後続の空白を除いたコピー (RTrim)、または先頭と後続の空白を除いたコピー (Trim) を格納する文字列を返します。
パブリック メソッド静的メンバーUCase(Char)指定された文字列を大文字に変換して文字列型 (String) または char 型 (Char) の値を返します。
パブリック メソッド静的メンバーUCase(String)指定された文字列を大文字に変換して文字列型 (String) または char 型 (Char) の値を返します。
このページのトップへ

このモジュールは、文字列を操作する Visual Basic 言語キーワードとランタイム ライブラリ メンバーをサポートします。

次の例では、空白で文字列を区切る方法を示します。

Visual Basic
Dim TestString As String = "Look at these!"
' Returns an array containing "Look", "at", and "these!".
Dim TestArray() As String = Split(TestString)

.NET Framework

サポート対象: 4、3.5、3.0、2.0、1.1、1.0

.NET Framework Client Profile

サポート対象: 4、3.5 SP1

Windows 7, Windows Vista SP1 以降, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core はサポート対象外), Windows Server 2008 R2 (SP1 以降で Server Core をサポート), Windows Server 2003 SP2

.NET Framework では、各プラットフォームのすべてのバージョンはサポートしていません。 サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
この型のすべてのパブリック static (Visual Basic では Shared) メンバーは、スレッド セーフです。 インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2012 Microsoft. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker