diff options
author | Topi Reinio <topi.reinio@qt.io> | 2023-04-18 20:23:15 +0000 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2023-04-24 18:39:29 +0000 |
commit | edf1e91454b1354bc3da718b2fe76930f894ff77 (patch) | |
tree | 64f1a329f7bcde0073e9a610be9019eeaa1e4742 /src/qdoc/qdoc/htmlgenerator.cpp | |
parent | 3d4ada255ad02a102426e4c89a8d976129a00c63 (diff) | |
download | qttools-edf1e91454b1354bc3da718b2fe76930f894ff77.tar.gz |
qdoc: Rename transmogrify() and move it under Utilities namespace
The transmogrify() function was used by the Generator to produce
clean output file names by replacing all non-alphanum characters
with hyphens. This function is useful elsewhere as well,
especially in HTMLGenerator, as it produces valid strings for use
as HTML attribute values.
Rename the function to a more descriptive canonicalizeFileName(),
move it to the Utilities namespace, improve its documentation and
touch up the implementation a bit; make it return a QString
instead of modifying a string passed as an argument.
Pick-to: 6.5
Change-Id: I6088f4603802b86f96c4a5b668668ef229b302f3
Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Diffstat (limited to 'src/qdoc/qdoc/htmlgenerator.cpp')
0 files changed, 0 insertions, 0 deletions