HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2014
1020
ÃË»ÒÃæ³ØÀ¸Ê¸»úÎó¤Î°ìÈÖ±¦¤Îʸ»ú¤ò¾Ã¤¹ÊýË¡10²ò·è


ÃË»ÒÃæ³ØÀ¸

¥ê¥ó¥¯

2014/10/20(Mon) 20:13:11|NO.65641

¤³¤ó¤Ð¤ó¤Ï
ʸ»úÎó¤Îʸ»ú¤ò¾Ã¤¹ÊýË¡¤¬Îɤ¯¤ï¤«¤é¤Ê¤¤¤Î¤Ç¼ÁÌ䤵¤»¤Æ¤â¤é¤¤¤Þ¤¹¡£


txt="ABCDEF" last_byte="" last_byte=strmid(txt,-1,1) mes last_byte b=strtrim (txt,3,''+last_byte) mes b

ʸ»úÎó·¿ÊÑ¿ôtxt¤ËÂåÆþ¤µ¤ì¤¿Ê¸»úÎó¡ÖABCDEF¡×¤Î
°ìÈÖ±¦¤Ë¤¢¤ë¡ÖF¡×¤òʸ»úÎ󤫤é¾Ã¤·¡¢"ABCDE"¤È¤¤¤¦ÍѤˤ·¤¿¤¯¡¢
ʸ»úÎóÁàºî´Ø·¸¤ÎÌ¿Îá¤Î¥µ¥ó¥×¥ë¤ò¤ß¤Ê¤¬¤é¾å¤Î¥¹¥¯¥ê¥×¥È¤ò½ñ¤¤¤Æ¤ß¤Þ¤·¤¿¤¬¡¢
¼Â¹Ô¤·¤Æ¤â"ABCDE"¤Ë¤Ê¤é¤Ê¤¤¤Ç¤¹¡£

­¡txt¤ÎºÇ¸å¤Îʸ»ú¤Ç¤¢¤ë¡ÖF¡×¤òstrmid¤Ç¼è¤ê½Ð¤¹¡Êʸ»úÎó·¿ÊÑ¿ôlast_byte¤ËÂåÆþ¡Ë
¡¡¡Ê¤³¤³¤Ï¤¦¤Þ¤¯¤Ç¤­¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡Ë
­¢strtrim¤Çʸ»úÎó·¿ÊÑ¿ôb¤Ëtxt¤«¤élast_byte¡Ê¡ÖF¡×¡Ë¤ò¼è¤ê½ü¤¤¤¿
¡¡¡ÖABCDE¡×¤òÂåÆþ¡¢¤È¤¤¤¦ÍѤˤʤë¤è¤¦¤Ëµ­½Ò¤·¤Þ¤·¤¿¤¬¤¦¤Þ¤¯¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£

¸¶°ø¤¬¤ï¤«¤ë¿Í¤¬¤¤¤Þ¤·¤¿¤é¡¢¶µ¤¨¤Æ¤¤¤¿¤À¤±¤ì¤Ð¤¦¤ì¤·¤¤¤Ç¤¹¡£



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


¤¿¤ó¤¹

¥ê¥ó¥¯

2014/10/20(Mon) 20:25:59|NO.65643

last_byte¤¬Ê¸»úÎ󷿤À¤«¤é¤Ç¤¹¤Í¡£
peek¤ò»È¤Ã¤Æʸ»ú¥³¡¼¥É¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
txt="ABCDEF"
last_byte="" last_byte=strmid(txt,-1,1) mes last_byte b=strtrim (txt,3,''+last_byte) mes b last_code=peek(last_byte,0) //ʸ»ú¥³¡¼¥É¤Ë¤¹¤ë c=strtrim (txt,3,last_code) mes c



zero

¥ê¥ó¥¯

2014/10/20(Mon) 20:35:36|NO.65644

ñ½ã¤Ë ʸ»úÎó¤ÎËöÈø¤Î1ʸ»ú¤ò¾Ã¤·¤¿¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢
Á´¤Æ¤Îʸ»ú¤¬1¥Ð¥¤¥Èʸ»ú(Ⱦ³Ñʸ»ú)¤À¤Èʬ¤«¤Ã¤Æ¤¤¤ì¤Ð
¤½¤Î°ÌÃ֤˥̥ëʸ»ú¤ò½ñ¤­¹þ¤à¤È¤¤¤¦¥ï¥¶¤â¤¢¤ê¤Þ¤¹¡£

txt = "ABCDEF" poke txt, strlen(txt)-1, 0 mes txt



ÃË»ÒÃæ³ØÀ¸

¥ê¥ó¥¯

2014/10/20(Mon) 21:01:57|NO.65645

>>¤¿¤ó¤¹¡¡¤µ¤ó

>>last_byte¤¬Ê¸»úÎ󷿤À¤«¤é¤Ç¤¹¤Í¡£
>>peek¤ò»È¤Ã¤Æʸ»ú¥³¡¼¥É¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£

¤¤¤Ã¤¿¤ó¿ôÃÍ¡Êʸ»ú¥³¡¼¥É¡Ë²½¤·¤Æ¤½¤ì¤òÆþ¤ì¤Ê¤¤¤È¤À¤á¤À¤Ã¤¿¤ó¤Ç¤¹¤Í¡£
¤è¤¯¸«¤¿¤é¡¢¥ê¥Õ¥¡¥ì¥ó¥¹¤Ë¤âʸ»úÎó¤Ç¤Ï¤Ê¤¯Ê¸»ú¥³¡¼¥É¤òÆþ¤ì¤í¡¢¤È
½ñ¤¤¤Æ¤¢¤ê¤Þ¤·¤¿Ž¥Ž¥Ž¥¡£
ʸ»ú¤ò¼èÆÀ¤·¤Æʸ»ú¥³¡¼¥É²½¡¢ºÇ¸å¤Ëʸ»ú¥³¡¼¥É¤«¤é»ØÄꤷ¤Æʸ»ú¤òºï½ü¡¢
¤È¤¤¤¦¼ê½ç¤ò³Ð¤¨¤é¤ì¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Ç¤¹¡ª

>>zero¡¡¤µ¤ó

>>ñ½ã¤Ë ʸ»úÎó¤ÎËöÈø¤Î1ʸ»ú¤ò¾Ã¤·¤¿¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢
>>Á´¤Æ¤Îʸ»ú¤¬1¥Ð¥¤¥Èʸ»ú(Ⱦ³Ñʸ»ú)¤À¤Èʬ¤«¤Ã¤Æ¤¤¤ì¤Ð
>>¤½¤Î°ÌÃ֤˥̥ëʸ»ú¤ò½ñ¤­¹þ¤à¤È¤¤¤¦¥ï¥¶¤â¤¢¤ê¤Þ¤¹¡£

¥ê¥Õ¥¡¥ì¥ó¥¹¤È¡Ö¥Ì¥ëʸ»ú¡×¤Ç¸¡º÷¤·¤ÆÄ󼨤·¤Æ¤¤¤¿¤À¤¤¤¿¥µ¥ó¥×¥ë¤Î
°ÕÌ£¤¬¤ï¤«¤ê¤Þ¤·¤¿¡ª

6ʸ»úÌܤΡÖF¡×¤ò¥Ì¥ëʸ»ú¤Ë½ñ¤­´¹¤¨¤ë¤³¤È¤Ç¡¢
F¤ò¾Ã¤¹¤³¤È¤¬¤Ç¤­¤ë¤ó¤Ç¤¹¤Í¡£

-1¤ò-2¤Ë¤¹¤ì¤ÐÁ´³Ñ¤â¾Ã¤»¤ë¤·¡¢-4¤Ë¤¹¤ì¤Ð°Ê¹ß¤Î4byteʬ¤Îʸ»ú¤ò
¥Ì¥ëʸ»ú¤Ë¤è¤Ã¤Æ¾Ã¤»¤ë¤Î¤ÏÊØÍø¤Ç¤¹¤Í¡£



¤ª¤«¤²¤Ç¸¶°ø¤¬¤ï¤«¤ê¤Þ¤·¤¿¡¢¤´²òÅú¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡ª



ZAP

¥ê¥ó¥¯

2014/10/20(Mon) 21:36:08|NO.65646

strlen¤ò»È¤Ã¤Æʸ»úÎó¤ÎŤµ¤ò¼èÆÀ¤¹¤ì¤Ð¤â¤Ã¤Èñ½ã¤Ë¤Ç¤­¤Þ¤¹


txt="ABCDEF" b=strmid(txt,0,strlen(txt)-1) mes b



ÃË»ÒÃæ³ØÀ¸

¥ê¥ó¥¯

2014/10/20(Mon) 22:15:27|NO.65649

>>ZAP¡¡¤µ¤ó

¤¿¤·¤«¤Ë¡¢É¬ÍפÊÉôʬ¤À¤±¤È¤ì¤Ð¡¢´Êñ¤Ë¤Ç¤­¤Þ¤¹¤Í¡£
¡Ö¾Ã¤¹¡×¤¸¤ã¤Ê¤¯¤Æ¡Ö¼è¤ê½Ð¤¹¡×ÊýË¡¤â¤¢¤ë¤ó¤Ç¤¹¤Í
»²¹Í¤Ë¤Ê¤ê¤Þ¤·¤¿¡ª



skyblue

¥ê¥ó¥¯

2014/10/21(Tue) 07:26:16|NO.65657

¥Ì¥ë¤Ç¤Ï¤Ê¤¯¤Æ¥¹¥Ú¡¼¥¹¤È¸À¤¦¤Î¤¤¤¦¤Î¤â¤¢¤ê¤Þ¤¹¡£



ÃË»ÒÃæ³ØÀ¸

¥ê¥ó¥¯

2014/10/27(Mon) 17:08:11|NO.65769

¤¹¤ß¤Þ¤»¤ó¡¢¤Þ¤¿ÌäÂ꤬½Ð¤Æ¤­¤¿¤Î¤Ç¤³¤³¤ÇºÆÅÙ
¼ÁÌä¤ò¤µ¤»¤Æ¤â¤é¤¤¤Þ¤¹¡£


txt="AB¤¢" mes "txt="+txt last_byte=strmid(txt,-1,1) //¤³¤Îstrtmid¤Îp3¤¬1¤Ç¡¢Ê¸»ú¤¬2byte¤¢¤ë¤È¡¢ //1byteʬ¤·¤«¼èÆÀ¤»¤º¡¢ºÇ½ªÅª¤Ëʸ»ú¤¬¤ª¤«¤·¤¯¤Ê¤ê¤Þ¤¹¡£ mes "last_byte="+last_byte last_code=peek(last_byte,0) mes "last_code="+last_code txt=strtrim(txt,2,''+last_code) mes txt

¢¬¤Îtxt¤Î¤è¤¦¤Ê¡¢1byte¤Îʸ»ú¤È2byte¤Îʸ»ú¤Îº®¤¶¤Ã¤¿Ê¸»úÎó¤Ç¡¢
"¤¢"¤Î¤è¤¦¤Ê2byte¤Îʸ»ú¤ò1byte¤È¤·¤Æ¼èÆÀ¤·¡¢¼è¤ê½ü¤¯¤È
ʸ»ú¤¬¤ª¤«¤·¤¯¤Ê¤ê¤Þ¤¹¡ä¡ã


¤½¤³¤Ç¼ÁÌä¤Ê¤Î¤Ç¤¹¤¬¡¢
°ìÈÖ±¦¤Îʸ»ú¤¬2byteʸ»ú¤È1byteʸ»ú¤«¤òȽÊ̤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤è¤¤¤Î¤«
¶µ¤¨¤Æ¤¯¤ì¤Þ¤»¤ó¤«¡£



ÃË»ÒÃæ³ØÀ¸

¥ê¥ó¥¯

2014/10/27(Mon) 19:18:21|NO.65772

>>zero¤µ¤ó

ʸ»úÎó¤ÎÁàºî¤ÎÌ¿Îá¤ò¥ê¥Õ¥¡¥ì¥ó¥¹¤Ê¤É¤Ç¤ß¤¿¤ó¤Ç¤¹¤¬¡£

£±Ê¸»ú¡á1byte¤È¤·¤Æ¤ß¤Ê¤¹¤â¤Î¤·¤«¤Ê¤«¤Ã¤¿¤Î¤Ç
º£²ó¤Î2¥Ð¥¤¥Èʸ»ú¡¦1¥Ð¥¤¥Èʸ»ú¤ÎȽÊ̤¬¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¤¬¡¢

IsDBCSLeadByte´Ø¿ô¤È¤¤¤¦¤â¤Î¤òÍøÍѤ¹¤ì¤Ð¤Ç¤­¤¿¤ó¤Ç¤¹¤Í¡ª

¤³¤ì¤«¤é¤Ï¡¢É¸½à¤ÎÌ¿Îá¤À¤±¤À¤Ï¤Ê¤¯¡¢
´Ø¿ô¤â»ëÌî¤ËÆþ¤ì¤ÆÄ´¤Ù¤Æ¤ï¤«¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Ç¤¹¡£


¤É¤¦¤â¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡°o¡°¥Î



·¡ÌÚ

¥ê¥ó¥¯

2014/10/27(Mon) 23:21:36|NO.65773

>>zero¤µ¤ó
¤¢¤¯¤Þ¤Ç¤âIsDBCSLeadByte¤ÎÊÖ¤êÃͤÏ2¥Ð¥¤¥Èʸ»ú¤ÎÀè¹Ô¥Ð¥¤¥È¤Î²ÄǽÀ­¤ò¼¨¤¹ÃͤǤ¹¤è¡£

1.txt¤ÎÆâÍƤ¬"¤éA"¤Î¤è¤¦¤Ë¡¢
2¥Ð¥¤¥Èʸ»ú¤Î¸å³¥Ð¥¤¥È¤¬¡¢Àè¹Ô¥Ð¥¤¥È¤Î²ÄǽÀ­¤¬¤¢¤ë¤â¤Î¤À¤È¾å¼ê¤¯µ¡Ç½¤·¤Þ¤»¤ó¡£
("¤éA"¤òÆþ¤ì¤ë¤ÈËöüʸ»ú¤¬"í¢"¤È½Ð¤Þ¤¹¡£)

2.txt¤ÎÆâÍƤ¬2¥Ð¥¤¥È°Ê¾å¤¢¤ë¤³¤È¤òÁ°Äó¤Ë¤·¤Æ¤¤¤ë¡£

Ä̾Á°¤«¤é½çÈ֤˸«¤Æ²ò·è¤·¤Æ¤¤¤¯¤è¤¦¤Ç¤¹¡£

#include "kernel32.as" txt="¤éA" mes "txt="+txt lastseek = 0 repeat strlen(txt) lastseek = cnt IsDBCSLeadByte peek(txt,cnt) if (stat) { continue cnt+2 } loop mes "°ìÈÖ±¦¤Îʸ»ú¤Ï¡Ö" + strmid(txt,lastseek,2) + "¡×"
°ìÅÙunicode¤ËÊÑ´¹¤·¤ÆËöü1¥ï¡¼¥Éºï¤Ã¤ÆSJIS¤ËÌ᤹¼ê¤â¤¢¤ê¤Þ¤¹¤¬¡¦¡¦¡¦¡£



zero

¥ê¥ó¥¯

2014/10/27(Mon) 23:35:25|NO.65774

>>·¡ÌÚ¤µ¤ó
¤´»ØŦ¤Î¤È¤ª¤ê¤Ç¤¹¡£¤½¤Î²ÄǽÀ­¤ò¤¹¤Ã¤«¤ê˺¤ì¤Æ¤ª¤ê¤Þ¤·¤¿¡£
¸í¤Ã¤¿¤³¤È¤ò½ñ¤¤¤Æ¤·¤Þ¤¤¡¢¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£



ONION software Copyright 1997-2023(c) All rights reserved.