を返します。 repChars の対応する文字で置き換える str の findChars のすべての文字が、新しい string 。
charReplace ( str As String, _
findChars As String, _
repChars As String ) As String
引数 | [タイプ] | 説明 |
---|---|---|
str | String | 修正する入力 string 、空である |
findChars | String | string 文字列を置換する |
repChars | String | findChars の文字に対応する置き換え文字の string をクリックします。 findChars と同じ文字数が含まれている必要があります。 |
Intent >charReplace("asdf", "a", "b")
--> "bsdf"
Intent >charReplace("asdf", "as", "bx")
--> "bxdf"
Intent >charReplace("asdf", "ks", "bx")
--> "axdf"