Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Štvrtok, 15. október 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  libcfg+  »  Fórum  »  parsing C-like comments /* ... */

libcfg+ General     parsing C-like comments /* ... */
Odoslať novú tému   Odpovedať na tému    
 
neil.bryan     Založený: 08.07.2004   Príspevky: 1  
Príspevok Zaslal: 2004-07-08 11:51
Návrat hore  Odpovedať s citátom     

Hi Guys,
I have been using libcfg+ and am happy with it. Well done!

I would like to know how I configure the options to allow comments in
a configuration file. Ideally I want to be able to do something like:

DEVICE = 3 /* This is the device ID */

The purpose is to parse the DEVICE value and ignore the test
delimmited by the /* */. The description of the library says it can do this,
I just haven't figured out how to do it!

Thanks for your time on this,

Regards,

Neil Bryan

 
nepto     Založený: 06.01.2003   Príspevky: 381   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2004-10-18 19:29
Návrat hore  Odpovedať s citátom     

I'm affraid this is not possible.

For comments there is only this option:

Citácia:
CFG_FILE_COMMENT_PREFIX -- config file comment prefix

For changing configuration comment prefix use this type. Lines started with one of these prefixes are skipped. By default are hash sign (#) and semicolon (;) initialized.


See documentation for more info:

http://opensource.platon.sk/projects/doc.php/libcfg+/html/usage.properties.html

However we can implement also support for /* ... */ comments. I'm quite busy now, but I will certainly accept a patch for this. Please start new entry in bug-tracking system if you willing to implemented this feature.

 
nepto     Založený: 06.01.2003   Príspevky: 381   Bydlisko: Phoenix, Arizona (USA)
Príspevok Zaslal: 2004-10-18 19:32
Návrat hore  Odpovedať s citátom     

Btw. with the current implementation you can simply make:

Kód:
# This is the device ID
DEVICE = 3


Well, I know, it is not the same, but better than nothing...

 
alkoyacompany     Založený: 04.12.2020   Príspevky: 1  
Príspevok Zaslal: 2020-12-04 18:49
Návrat hore  Odpovedať s citátom     

https://al-koya.com/%D8%B4%D8%B1%D9%83%D8%A9-%D8%AA%D9%86%D8%B8%D9%8A%D9%81-%D8%A8%D8%A7%D9%84%D8%A7%D8%AD%D8%B3%D8%A7%D8%A1/

https://al-koya.com/%D8%B4%D8%B1%D9%83%D8%A9-%D9%85%D9%83%D8%A7%D9%81%D8%AD%D8%A9-%D8%AD%D8%B4%D8%B1%D8%A7%D8%AA-%D8%A8%D8%A7%D9%84%D8%A7%D8%AD%D8%B3%D8%A7%D8%A1/

 
Hassaan khan     Založený: 10.11.2020   Príspevky: 8  
Príspevok Zaslal: 2020-12-09 09:19
Návrat hore  Odpovedať s citátom     

I'm very grateful to the author, this really changed my thought. I'm looking forward to acknowledge this website as one of the best for new information. Han Solo Jacket

 
parul1234     Založený: 03.02.2021   Príspevky: 43  
Príspevok Zaslal: 2021-02-03 13:56
Návrat hore  Odpovedať s citátom     

Here you can make your day with hot babes and take you satisfaction with girls.

tilak nagar Escorts Service
Escorts in lajpat nagar
ssarita vihar Escorts service
rohini Call Girls
vikas puri Escorts

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov