Show the callstacks
Project description
README
Provide some tools in C++ development.
- Extracted raw strings from the C++ code
The source code is here. The python package is here.
1. How to install
pip install cjtool
2. Command
A new command stringrep.exe is added after the installation.
- The command
stringrepis to replace the raw string to a pointer. For example
auto m = py::module::import("test_cmake_build");
// convert to the line below
auto m = py::module::import(pStrTest_cmake_build);
// the definiation of the string is as below
constexpr char* pStrTest_cmake_build = "test_cmake_build";
- Help message from the command
stringrepis as below.
$ stringrep -h
usage: stringrep [-h] [-i] [-c] [-g] [-p PREFIX] file
positional arguments:
file set the cpp file name
optional arguments:
-h, --help show this help message and exit
-i, --inplace replace the file in place (default: False)
-c, --capitalize capitalize the captured word, for example,
"tom" turns to "Tom" (default: False)
-g, --generate generate the header lines for the captured
strings (default: False)
-p PREFIX, --prefix PREFIX
set the prefix for raw string (default: pStr)
How to build and upload
python -m build --sdist --wheel
or
python -m build --wheel
twine upload dist/*
Test on local machine
python -m pip install --editable .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
callbook-0.0.7-py3-none-any.whl
(64.6 kB
view details)
File details
Details for the file callbook-0.0.7-py3-none-any.whl.
File metadata
- Download URL: callbook-0.0.7-py3-none-any.whl
- Upload date:
- Size: 64.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7afce6884a3120ddca0d8ae611edb351397b0e7f9fd503d9edd6904c26ad59
|
|
| MD5 |
c683d718b0d26becf15cfc5b08b87800
|
|
| BLAKE2b-256 |
64f4bc153a62c89e7a1e0470cbb14cb3c978c6eb192ff80e2906df3ed25c5513
|