Guide to the file search + transformation samples

Search: Search + replace: Convert: Etcetera:

C-functions

Extracts function definition headers from C and C++ source files.   Even works on MFC source.

Contact DTUtilities support for more information.


CSV-database

Imports CSV (comma-separated value) data into a database table.   Transmits fields 1-13 in the input to fields A-M in the database.   Ignores the first line of input, which is assumed to contain layout information.   Can easily be adapted to import a different number of fields.

Contact DTUtilities support for more information.


File-count-keywords

Counts words and keywords in a group of HTML files.   User must configure the input file(s) and "Keywords" lists.

Installs with DTBuild.


File-count-lines

Computes the line count of a group of text files.

Installs with DTBuild.


File-CRLF-LF

Replace carriage return - line feed sequences (0x0D0A) with line feeds (0x0A).

Installs with DTBuild.


File-filter-unprintables

Extracts printable characters (ASCII 30-126) from the input, discards everything else, i.e. unprintable characters.

Installs with DTBuild.


File-generate-site-index

Generates a site index (web page) from web pages (HTML files) in a directory.   Extracts the TITLE and description META HTML tags for each page.   Used to generate this site's index.

Installs with DTBuild.


File-HTML-generate-line-breaks

Replaces newline characters with HTML <BR> tags.   Can be used as a post-processor to preserve newlines when converting to HTML.

Installs with DTBuild.


File-LF-CRLF

Replace line feeds (0x0A) with carriage return + line feed sequences (0x0D0A).

Installs with DTBuild.


File-search

Searches for one or more text strings in the input files.   User must configure the input file(s) and "search items" lists.

Installs with DTBuild.

Mimics the output of the grep program.


File-search-replace

Searches for and replaces one or more patterns in the input files.   User must configure the input file(s) and "new text" lists.

Generates 2 results summaries :

Installs with DTBuild.


File-search-whole-words-only

Performs a "whole-word-only" search for a string.

Contact DTUtilities support for more information.


File-search-wide

Performs wide-string (Unicode) text search.

Contact DTUtilities support for more information.


File-swap-bytes

Swaps consecutive bytes in a group of files.   Big-endian to little-endian and vice-versa.

This application of DTBuild is trivial and inefficient (and a little silly), but it works.   It handles the leftover byte if the input file has an odd byte count.   Processing the odd last byte allows for round-trip conversions that return the input files to their starting states.

This application of DTBuild is inefficient because DTBuild examines the value of every byte, which, for this task, is not necessary.

Contact DTUtilities support for more information.


HTML-Unicode-maps-to-C

Converts ISO8859-to-Unicode maps to C include files.   Reads the HTML files, filters out the hexadecimal ISO8859-to-Unicode mapping values and formats them so that they can be included and compiled in a C program.   The input maps can be found at :  ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859.

Contact DTUtilities support for more information.


PAD-database

Parses a PAD (Portable Application Description) XML file and loads selected values into a database table.

Contact DTUtilities support for more information.


PDF-database

DTBuild has been used to import PDF (Portable Document Format) file data into databases.   DTBuild is currently unable to read PDF directly, so the PDF files must be converted to text prior to the import.

Contact DTUtilities support for more information.


RTF-HTML

Generates web content (HTML) from RTF (rich text format) files.   Does a decent job of converting the old Set Machine RTF help file to HTML.   May require modification for other RTF files!   Builds links and a separate index file too.

Contact DTUtilities support for more information.


RTF-lines

Replaces newline characters with RTF "\line" tokens.

Contact DTUtilities support for more information.


Syntax-check

Perform syntax checking on files.   See the syntax checker example or contact DTUtilities support for more information.


XML-database

XML parsing sample.   See the XML parsing topic or contact DTUtilities support for more information.


Legacy data conversion

DTBuild can be configured to transform legacy data formats into databases, XML, or other formats.

Examples

DTBuild has been used to :

Contact DTUtilities support for more information.