¥³¥Þ¥ó¥É¥é¥¤¥óʸ»úÎó¤Î¥À¥Ö¥ë¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó¤Î´Êñ¤Ê½üµî½èÍý¤Ç¤¹
Á°Äó¤È¤·¤Æ¡¢
1. ¥Õ¥¡¥¤¥ë¥Ñ¥¹¤òÅϤ¹
2. Ê£¿ô¤Î¥Õ¥¡¥¤¥ë¥Ñ¥¹¤òÅϤµ¤Ê¤¤
3. ¡Ö"hoge.txt¡×¤Î¤è¤¦¤Ê¡¢'"'¤Ç½ª¤ï¤Ã¤Æ¤¤¤Ê¤¤¥Ñ¥¹¤òÅϤµ¤Ê¤¤
¤È¤¤¤¦¾ò·ï¤¬¤¢¤ê¤Þ¤¹¡£
A, B, C¤Ï¤½¤ì¤¾¤ì¡¢¤É¤ì¤âƱ¤¸¤³¤È¤ò¤ä¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤É¤ì¤«°ì¤Ä¤ò
»È¤¨¤Ð·ë¹½¤Ç¤¹¡£
;A) strmid¤ò»ÈÍѤ·¤¿¾ì¹ç
path = dir_cmdline
if( peek(path,0) == '"' ){
path = strmid(path,1,strlen(path)-2)
}
;B) getstr¤ò»ÈÍѤ·¤¿¾ì¹ç
path = dir_cmdline
if( peek(path,0) == '"' ){
getstr path,path,1,'"'
}
;C) dir_cmdline¤òÃÖ¤´¹¤¨¤Æ¤ß¤ë
__path=dir_cmdline
#undef dir_cmdline
#define dir_cmdline __path
if peek(__path)=34:getstr __path,__path,1,'"'
½èÍý¤Îή¤ì¤È¤·¤Æ¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥óʸ»úÎ󤬡Öhoge.txt¡×¤Þ¤¿¤Ï
¡Ö"hoge.txt"¡×¤Î·Á¼°¤ÇÅϤµ¤ì¤ë¤Î¤Ç¡¢»Ï¤á¤Î°ìʸ»ú¤ò¥Á¥§¥Ã¥¯¤·
¤Æ¡¢¤â¤·'"'¤Ç¤¢¤ì¤Ð¸å¼Ô¤Î·Á¼°¤Ç¤¢¤ë¤Î¤Ç¡¢»Ï¤á¤Î'"'¤Î¸å¤«¤é¼¡
¤Î'"'¤Þ¤Ç¤Î´Ö¤Îʸ»úÎó¤ò¼è¤ê½Ð¤·¡¢ÊÑ¿ôpath¤Ë³ÊǼ¤·¤Þ¤¹¡£¤½¤¦¤Ç
¤Ê¤¤¾ì¹ç¤Ï¡¢¤½¤Î¤Þ¤Þpath¤Ë³ÊǼ¤µ¤ì¤¿¤â¤Î¤ò»È¤¨¤ÐOK¤Ç¤¹¡£
'"'¤Ï¥À¥Ö¥ë¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó¤ÎASCII¥³¡¼¥É¡Ö34¡×(int·¿)¤òɽ¤·
¤Þ¤¹¡£
peekÌ¿Îá¤Ïʸ»úÎó¤ÎÀèƬ¤«¤é¿ô¤¨¤Æ£îÈÖÌܤÎʸ»ú¤Îʸ»ú¥³¡¼¥É¤òÊÖ¤¹
´Ø¿ô¤Ç¤¹¤Î¤Ç¡¢¤½¤ì¤È'"'¤òÈæ³Ó¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢¥³¥Þ¥ó¥É¥é¥¤¥óʸ
»úÎó¤ÎÀèƬ¤¬¥À¥Ö¥ë¥¯¥©¡¼¥Æ¡¼¥·¥ç¥ó¤Ç»Ï¤Þ¤Ã¤Æ¤¤¤ë¤«Èݤ«¤òȽÄꤹ
¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
strmid, getstrÌ¿Îá¤Ë¤Ä¤¤¤Æ¤ÏHSP¥¹¥¯¥ê¥×¥È¥¨¥Ç¥£¥¿¤Ë¤½¤ì¤¾¤ì¡¢
¡Östrmid¡×¡¢¡Ögetstr¡×¤ÈÂǤÁ¡¢ÂǤä¿Ê¸»úÎó¤òÁªÂò¤·¤¿¾õÂÖ¤ÇF1
¥¡¼¤ò²¡¤¹¤³¤È¤Ë¤è¤êɽ¼¨¤µ¤ì¤ëHSP HELP Browser¶¤ò¸«¤ì¤Ð¡¢¤É
¤¦¤¤¤Ã¤¿Ì¿Îá¤Ê¤Î¤«Ê¬¤«¤ë¤È»×¤¤¤Þ¤¹¡£¤½¤ì¤Ç¤âʬ¤«¤é¤Ê¤¤¾ì¹ç¤Ï
·Ç¼¨ÈĤǼÁÌ䤹¤ë¤È¤¤¤¤¤Ç¤¹¡£
ºÇ¸å¤Î#undef, #define¤Ë¤Ä¤¤¤Æ¤Ï¡¢¡Ö¥Þ¥¯¥í¡×¤ä¡Ö¥×¥ê¥×¥í¥»¥Ã¥µ
Ì¿Îá¡×¤È¸Æ¤Ð¤ì¤ë¤â¤Î¤Ê¤Î¤Ç¡¢¥×¥í¥°¥é¥à¤òºî¤ë¾å¤ÇÆä˳Ф¨¤ëɬÍ×
¤Ï¤¢¤ê¤Þ¤»¤ó¡£HSP¤ÎÌ¿Îá¤ò¤À¤¤¤¿¤¤³Ð¤¨¤Æ¤·¤Þ¤Ã¤ÆË°¤¤¿¤³¤í¤Ë»È
¤¤½Ð¤¹¤È¤¤¤¤¤È»×¤¤¤Þ¤¹¡£
Ĺ¡¹¤È½ñ¤¤¤Æ¤·¤Þ¤¤¤¹¤ß¤Þ¤»¤ó¡£