cstrings 2.3.1
Sponsored Links
cstrings 2.3.1 Ranking & Summary
File size:
0.018 MB
Platform:
Any Platform
License:
GPL (GNU General Public License)
Price:
Downloads:
1649
Date added:
2005-04-18
Publisher:
Eric S. Raymond
cstrings 2.3.1 description
A lightweight internationalization tool for C code, for those who find gettext too bulky and intrusive. Extracts strings from a program and turns them into #defines in a pre-pended code section. Has good features for building up your message base incrementally.
This tool can be used to massage input C source so that literal strings in it are replaced by generated #define symbols, with the list of #defines prepended to the resulting source code. String literals on #include and #define lines and in comments are skipped.
If no filenames are given, standard input is filtered to standard output. If filenames are given (and appropriate write permissions are present), each file is replaced by its converted result (the replace is done with a link(2), so the program is signal-safe). To avoid heartbreak and death threats to the author, it is recommended that you not use this feature without looking at the filtered version first to ensure that its what you really want.
The string argument of a -r option is interpreted as a comma-separated list of line numbers or line number ranges to which the string filtering is to be limited. A range of the form " -" is taken to signify all lines from line to EOF; a range of the form "- " signifies all lines from the start of file to line . Additionally, any range or number may be preceded by !; this causes filtering to be suppressed for the lines designated. If the first character of a range option is !, filtering is assumed initially on for all lines, rather than off.
The -t option sets the template with which string labels are generated. The default is "G%05d". The template is sprintfed with a sequence number as argument.
The -m option takes a numeric argument, interpreted as a minimum length. All strings less than that size are ignored. Note that this minimum length defaults to 3, you must say -m 1 or -m 2 to see all short strings.
The -c option suppresses the normal action and instead causes a list of strings that would otherwise be #define-ized (each preceded by its line number) to be emitted to stdout. If -c is used with file arguments a report with sections headed by file names will be generated.
The -c option permits you to anticipate the effects of a substitution without having to look at the whole source file.
This tool is best used by doing repeated -c runs, adding to an -r argument until you have it down to filtering just the lines you want, and then dropping the -c to do the actual conversion. Then you can move the list of generated #defines to an appropriate spot with a text editor.
Version restrictions:
- This program makes no effort to be intelligent about duplicate strings. Also, it doesnt handle quoted quotes within strings.
Enhancements:
- Use mkstemp(3) rather than tempnam(3) for securitys sake.
- Source RPMs no longer depend on --define myversion.
This tool can be used to massage input C source so that literal strings in it are replaced by generated #define symbols, with the list of #defines prepended to the resulting source code. String literals on #include and #define lines and in comments are skipped.
If no filenames are given, standard input is filtered to standard output. If filenames are given (and appropriate write permissions are present), each file is replaced by its converted result (the replace is done with a link(2), so the program is signal-safe). To avoid heartbreak and death threats to the author, it is recommended that you not use this feature without looking at the filtered version first to ensure that its what you really want.
The string argument of a -r option is interpreted as a comma-separated list of line numbers or line number ranges to which the string filtering is to be limited. A range of the form " -" is taken to signify all lines from line to EOF; a range of the form "- " signifies all lines from the start of file to line . Additionally, any range or number may be preceded by !; this causes filtering to be suppressed for the lines designated. If the first character of a range option is !, filtering is assumed initially on for all lines, rather than off.
The -t option sets the template with which string labels are generated. The default is "G%05d". The template is sprintfed with a sequence number as argument.
The -m option takes a numeric argument, interpreted as a minimum length. All strings less than that size are ignored. Note that this minimum length defaults to 3, you must say -m 1 or -m 2 to see all short strings.
The -c option suppresses the normal action and instead causes a list of strings that would otherwise be #define-ized (each preceded by its line number) to be emitted to stdout. If -c is used with file arguments a report with sections headed by file names will be generated.
The -c option permits you to anticipate the effects of a substitution without having to look at the whole source file.
This tool is best used by doing repeated -c runs, adding to an -r argument until you have it down to filtering just the lines you want, and then dropping the -c to do the actual conversion. Then you can move the list of generated #defines to an appropriate spot with a text editor.
Version restrictions:
- This program makes no effort to be intelligent about duplicate strings. Also, it doesnt handle quoted quotes within strings.
Enhancements:
- Use mkstemp(3) rather than tempnam(3) for securitys sake.
- Source RPMs no longer depend on --define myversion.
cstrings 2.3.1 Screenshot
cstrings 2.3.1 Keywords
For C
C code
cstrings
option
lines
code
tool
strings
cstrings 2.3.1
Internationalization
Programming
Bookmark cstrings 2.3.1
cstrings 2.3.1 Copyright
WareSeeker periodically updates pricing and software information of cstrings 2.3.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of cstrings 2.3.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
TinyMCE is a platform-independent, Web-based, Javascript HTML WYSIWYG editor. Free Download
Python-LDAP provides an object-oriented API to access LDAP directory servers from Python programs. Free Download
Valgrind is an award-winning suite of tools for debugging and profiling Linux programs. Free Download
MINIX 3 is a new open-source operating system designed to be highly reliable and secure. Free Download
ePerl is an Embedded Perl 5 Language. Free Download
Gecode is a portable, accessible, and efficient environment for developing constraint-based systems and applications. Free Download
GPS Tracker project allows someone to track a GPS enabled cell phone using Google maps. Free Download
GStreamer Python Bindings provide Python bindings for the GStreamer project. Free Download
Latest Software
Popular Software
Favourite Software