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