This documenta- tion describes the current state of development.
Note that interfaces and functionality may still change.

Prokee Modules:
  A
  B
  C
  D
  E
  F
  G
  I
  L
  M
  N
  O
  P
  R
  S
  T
  U
  W

     open all    |    close all

GUI Elements:
  B
  C
  I
  M
  P
  R
  S
  T

     open all    |    close all

GUI Interactions:
  B
  F
  H
  S

     open all    |    close all

GUI Layouts:
  L

     open all    |    close all

Games/Demos:
  M

     open all    |    close all

Third Party Libraries:
  P
  F
  Z

     open all    |    close all

Information about this Website / Informationen zu dieser Webseite:
In case of any questions, or comments, please feel free to contact me via email at apoll500@gmail.com.

Module removebom [Version: v01]

 
Compile status: 
see log

Contents


Dependencies

For the Prokee Module Library

Dynamically Linked Modules: For the Standalone Executable

Source Files

  • removebom/removebom.h
  • interface/prokee/removebom/prokee.h
  • interface/prokee/removebom/prokee_c.h
  • interface/prokee/mlocal.h
  • removebom/removebom.cpp
  • interface/prokee/removebom/prokee.cpp
  • interface/prokee/removebom/prokee_c.cpp

Licenses


Command-Line Interface (removebom)

prokee::removebom(1) Prokee Tools prokee::removebom(1)

NAME
removebom - Removes (or adds) the BOM from (to) utf8 files.

SYNOPSIS
removebom [[OPTION]... [FILE]...]...

DESCRIPTION
removebom removes (or adds) the utf-8 Byte-Order-Mark (BOM) from (to) files. PATH may be the path to a file, or the path to a directory. (If a path is intended to point to a directory, it has to end with a '/' character. Otherwise the path is assumed to point to a file.)

If no OPTION and no PATH is given, PATH is assumed to be "./" with all OPTIONs set to their defaults.

The command-line arguments are parsed from left to right. Settings given as OPTIONs apply to all filenames and directories stated afterwards. But only until settings are overwritten by contradicting options. E.g. logging may be turned on and off within one command as in example (2).

OPTIONS
--extensions EXTENSION,...
Specifies filename extensions to search for. If set, only filenames matching with one of the given extensions are processed. If no file extensions are specified, all files will be included, regardless of their filename extension.

--restore_bom, --remove_bom
Use --remove_bom to remove and --restore_bom to restore the BOM. Default is --remove_bom.

--flat, --recursive
If --flat is given, the program will process all files within a given directory without searching through sub-directories. With --recursive also all sub-directories are searched for files to process. Default is --recursive.

--log-on, --log-off
Turns logging on or off. If logging is turned on, filenames are printed to standard output. Default is --log-on.

EXAMPLES
(1) Searches for files with the filename extensions .txt, .html or .php in directory ./ and all sub-directories and removes the BOM from this files.

$ removebom --extensions txt,html,php ./

(2) Turns logging off for file1.txt, file2.txt and file3.txt and than on, when processing files in directory more/.

$ removebom --log-off file1.txt file2.txt file3.txt --log-on more/

(3) Searches for txt files in directory text-files/ and for html files in directory html-files/.

$ removebom --extensions txt text-files/ --extensions html html-files/

AUTHOR
Andreas Pollhammer, info@andreaspollhammer.com

COPYRIGHT
Copyrigt by Andreas Pollhammer

v01 2019 prokee::removebom(1)

Exported Symbols

Functions

int removebom_run(const char *filepath,const char *file_extensions,bool flat,bool restore,bool print_log);
int removebom_run2(const char *filepath,char **file_extensions,bool flat,bool restore,bool print_log);

Pointers

int (*removebom_main)(int argc,char **argv);

Internal Pointers

Functions

int removebom_run(const char *filepath,const char *file_extensions,bool flat,bool restore,bool print_log);
int removebom_run2(const char *filepath,char **file_extensions,bool flat,bool restore,bool print_log);

Pointers

int removebom_main(int argc,char **argv);

Build Log

--------------------------------------------------------------------------------
removebom -- Do Dez  5 02:37:46 CET 2019
--------------------------------------------------------------------------------
ERROR: Fehler beim öffnen der Datei files.def.
Fehlernummer: 2
-------------------------------------------------------------------------------
> install headers
cp: der Aufruf von stat für '../source/interface/prokee/removebom/inc/struct.h' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
-------------------------------------------------------------------------------
Executable for Linux/[local system] (CLI)
[compiling] [end]
------------------------------------------------------------------------------- Executable for Windows/[local system] (CLI)
[compiling] [end]
------------------------------------------------------------------------------- Dynamic library for Linux/[local system] (DLL)
[compiling] [end]
------------------------------------------------------------------------------- Dynamic library for Windows/[local system] (DLL)
[compiling] [end]
------------------------------------------------------------------------------- Static library for Linux/[local system] (LIB)
[compiling] [end]
------------------------------------------------------------------------------- Static library for Windows/[local system] (LIB)
[compiling] [end]
------------------------------------------------------------------------------- TESTS (Automated Tests for Linux/[local system])
[compiling] [end]
------------------------------------------------------------------------------- TESTS (Automated Tests for Windows/[local system])
[compiling] [end]
------------------------------------------------------------------------------- Executable for Linux/32bit (CLI)
[compiling] [end]
------------------------------------------------------------------------------- Executable for Windows/32bit (CLI)
[compiling] [end]
------------------------------------------------------------------------------- Dynamic library for Linux/32bit (DLL)
[compiling] [end]
------------------------------------------------------------------------------- Dynamic library for Windows/32bit (DLL)
[compiling] [end]
------------------------------------------------------------------------------- Static library for Linux/32bit (LIB)
[compiling] [end]
------------------------------------------------------------------------------- Static library for Windows/32bit (LIB)
[compiling] [end]
------------------------------------------------------------------------------- TESTS (Automated Tests for Linux/32bit)
[compiling] [end]
------------------------------------------------------------------------------- TESTS (Automated Tests for Windows/32bit)
[compiling] [end]
------------------------------------------------------------------------------- Executable for Linux/64bit (CLI)
[compiling] [end]
------------------------------------------------------------------------------- Executable for Windows/64bit (CLI)
[compiling] [end]
------------------------------------------------------------------------------- Dynamic library for Linux/64bit (DLL)
[compiling] [end]
------------------------------------------------------------------------------- Dynamic library for Windows/64bit (DLL)
[compiling] [end]
------------------------------------------------------------------------------- Static library for Linux/64bit (LIB)
[compiling] [end]
------------------------------------------------------------------------------- Static library for Windows/64bit (LIB)
[compiling] [end]
------------------------------------------------------------------------------- TESTS (Automated Tests for Linux/64bit)
[compiling] [end]
------------------------------------------------------------------------------- TESTS (Automated Tests for Windows/64bit)
[compiling] [end]
------------------------------------------------------------------------------- > test_all ------------------------------------------------------------------------------- > prepare cp: der Aufruf von stat für '../source/interface/prokee/removebom/inc/struct.h' ist nicht möglich: Datei oder Verzeichnis nicht gefunden ------------------------------------------------------------------------------- > install creating /opt/prokee/system/reg/dllinfo/removebom.v01.info ... license=1 | version=1 | library=libremovebom.v01 creating /opt/prokee/system/reg/dllinfo/removebom.info ... license=1 | version=1 | library=libremovebom.v01 ------------------------------------------------------------------------------- > module ------------------------------------------------------------------------------- > exepack ------------------------------------------------------------------------------- > sourcepack ------------------------------------------------------------------------------- > cleanup ------------------------------------------------------------------------------- > webexport -------------------------------------------------------------------------------- FERTIG --------------------------------------------------------------------------------

Copyright © 2017 - 2019 by Andreas Pollhammer