Page 2 of 2
Re: NXC: string-upcase? string-downcase?
Posted: 06 Feb 2012, 12:29
by mightor
They're not for strings specifically, it says they're for arrays
However, the compiler still needs some work to make it work, so you'll have to hold your proverbial horses until that's all setup. Although, at the pace John cranks out changes to NXC, I doubt you'll be left waiting for long.
- Xander
Re: NXC: string-upcase? string-downcase?
Posted: 06 Feb 2012, 15:42
by afanofosc
If you download the latest test release zip from the test_releases folder and install the 1.32 firmware on your NXT then the uplow.nxc program attached in the above message will compile.
As you can see from the code the NXC API now includes UpperCase and LowerCase functions which take a string (but, like many NXC API functions, does not support an NXC expression).
I haven't updated the templates or the nxc api defaults file so these functions will not show with Syntax Highlighting yet.
I know I need to split NXCDefs.h into separate files. Easier said than done but I will work on it.
John Hansen
Re: NXC: string-upcase? string-downcase?
Posted: 06 Feb 2012, 17:05
by HaWe
I know I need to split NXCDefs.h into separate files. Easier said than done but I will work on it.
admittedly OT: But if that's too much effort, what about not investing time for that but instead use your free time for writing a non-Lego compatible firmware which e.g. generates genuine ARM7 machine code?
(of course with a close to 100% ANSI compatible C compiler for the Bricxcc IDE, and maybe using a bootloader RAM to keep the std fw on the NXT - but the latter is not a must)
:D
Re: NXC: string-upcase? string-downcase?
Posted: 06 Feb 2012, 17:46
by mcsummation
afanofosc wrote:I know I need to split NXCDefs.h into separate files. Easier said than done but I will work on it.
Could I help with that task? Although I'm new to NXC, I've got years of experience programming. (Retired IBM programmer.)