charReplace()

概要

を返します。 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 と同じ文字数が含まれている必要があります。

例 1

Intent >charReplace("asdf", "a", "b") 
--> "bsdf" 

例 2

Intent >charReplace("asdf", "as", "bx") 
--> "bxdf" 

例 3

Intent >charReplace("asdf", "ks", "bx") 
--> "axdf"