Page 1 of 1

HPWControl

PostPosted: Sat Dec 26, 2009 10:37 am
by Wrangler
Hi Hans-Peter

I noticed that using hpwLineNumber, if the string is not found, it returns '1'. This would be a conflict if the string searched for is on line 1. Can this be changed so string not found would return 0, or -1?

As always, this action is super fast. Thanks for this great plugin.

Thanks!

PostPosted: Sun Dec 27, 2009 7:52 am
by HPW
Did you use 1.39 or later?

There was the bugfix announced in 1.39!

http://www.neosoftware.com/forum/viewto ... 6&start=75

PostPosted: Sun Dec 27, 2009 9:09 am
by Wrangler
Great! Thanks. I thought I had upgraded, but apparently not. I was using 1.27!

Re: HPWControl

PostPosted: Mon Dec 10, 2012 11:58 pm
by mishem
hpwIsNumeric
Check a string if it is numeric including , + .
+ возвращает в переменную 0.

hpwIsAlpha
hpwIsAlphaNumeric
Кирилица не определяется как буквы. Можно исправить что бы на проверку кирилицы тоже возвращало 1 ?

Re: HPWControl

PostPosted: Tue Dec 11, 2012 5:44 am
by HPW
Hello,

hpwIsNumeric suports inculded , and . but not +
(It is not part of a number, you may parse it out)

Code: Select all
         csNumeric         = ['0'..'9'];
         csDezimal         = [',', '.'];
         csDNumeric        = csNumeric + csDezimal;


hpwIsAlpha and hpwIsAlphaNumeric are using such lookup tables in delphi:

Code: Select all
         csNumeric         = ['0'..'9'];
         csUmlaut          = ['ä', 'ö', 'ü', 'Ä', 'Ö', 'Ü', 'ß'];
         csAlphaLow        = ['a'..'z'];
         csAlphaUp         = ['A'..'Z'];
         csAlpha           = csAlphaLow + csAlphaUp + csUmlaut;
         csAlphaNumeric    = csNumeric + csAlpha;


So what would be needed for cyrilic ?

Regards

Re: HPWControl

PostPosted: Tue Dec 11, 2012 12:03 pm
by mishem
Плагин не понимает русский шрифт.
Как мне подсказывают нужно как то так
Const
CyrillicLow = 'абвгдеёжзийклмнопрстуфхцчшщьыъэюя';
CyrillicUp = 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ';

hpwIsNumeric suports inculded , and . but not +

Я понимаю, просто в описании плагина + присутствует.

Re: HPWControl

PostPosted: Tue Dec 11, 2012 12:16 pm
by HPW
I think this will not work, because the cyrilic chars are not known on my development system.
Maybe your russian plugin developer friends can make a similar function for cyrilic fonts.

Re: HPWControl

PostPosted: Tue Dec 11, 2012 12:43 pm
by mishem
I think this will not work, because the cyrilic chars are not known on my development system.

Если вы можете читать мой текст, значит система поддерживает. :)

Но все равно спасибо за ответ и за такие замечательные плагины.
Этот плагин один из моих любимых. :)

Re: HPWControl

PostPosted: Tue Dec 11, 2012 3:16 pm
by HPW
If you can read my text, the system supports.


No, I can read it because the browser supports unicode.
But current neobook and my plugins does not and are ASCII-based.

Regards