Created
February 1, 2012 02:48
-
-
Save kumatti1/1714772 to your computer and use it in GitHub Desktop.
VBA用idl変換
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var FilePath = 'test2.txtへのパス'; | |
var s = new ActiveXObject("Scripting.FileSystemObject").OpenTextFile(FilePath).ReadAll(); | |
//WScript.Echo(s); | |
// carriage returnの削除 | |
s = s.replace(/\r/g,''); | |
// WScript.Echo(s); | |
// 引数の属性 | |
s = s.replace(/\[.*\]/g,'[in]'); | |
// 引数の型と名前 | |
s = s.replace(/\].*\b(\*+)?(\w+)(,?)/g,'] long $2$3'); | |
// 結果 | |
WScript.Echo(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment