Re: How to change functions
Anders Lund <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kate |
|---|---|
| Organization | Saguaro |
| Message-ID | <[email protected]> |
On Tuesday 23 July 2002 17:32, Katinka Mills wrote: > Hi all, > > Not sure where this question belongs but here it is: > > When I was taught to program (mybe this is just an EE thing) I was taught > to express hexadecimal numbers in the form of 0x1234 IE a leading 0 > followed by an "x". The function for finding these numbers seems to me to > be HlCHex from the C library kdelibs'HlCHex::checkHgl() > (./kdelibs/kwrite/highlight.cpp:409) Now when I use this function I get the > leading 0 highlighted and any numbers (being picked up by the decimal > highlight routine I am guessing) but not the x or any hex letters A-F. > > > Where do I find the documentation regarding these functions ? > > Regards, > > Kat. The hl's using the functions works fine (C, C++ ao). Maybe it is a matter of order, check for hex before checking for int, as the int check will pick up the leading "0" and thus prevent the hex check from getting a chance. -anders