ddnet/scripts
heinrich5991 17402cc43f Rename all variables for strict camel-casing of abbreviations
This is the strict version, ID → Id, UI → Ui, except DDNet which stays
DDNet.

This would fix #7750.

Done using a naive rename script (for bash, use `shopt -s globstar`):

```fish
sed -i \
	-e 's/\([a-z]_\?\)ID/\1Id/g' \
	-e 's/\([^ ]\)\<UI\>/\1Ui/g' \
	-e 's/UI()/Ui()/g' \
	-e 's/\<CUI\>/CUi/g' \
	-e 's/\([\ta-z.(&]\|[,=|] \)ID\>/\1Id/g' \
	-e 's/\<ID\>\([^ ").]\)/Id\1/g' \
	-e 's/\<ID\([0-9]\)/Id\1/g' \
	-e 's/\<ID\>\( [<=>:+*/-]\)/Id\1/g' \
	-e 's/int ID/int Id/g' \
	-e 's/\([a-z]_\?\)GPU/\1Gpu/g' \
	-e 's/\([a-z]_\?\)IP/\1Ip/g' \
	-e 's/\([a-z]_\?\)CID/\1Cid/g' \
	-e 's/\([a-z]_\?\)MySQL/\1Mysql/g' \
	-e 's/MySql/Mysql/g' \
	-e 's/\([a-xz]_\?\)SQL/\1Sql/g' \
	-e 's/DPMode/DpMode/g' \
	-e 's/TTWGraphics/TTwGraphics/g' \
	\
	-e 's/Ipointer/IPointer/g' \
	-e 's/\.vendorId/.vendorID/g' \
	-e 's/\.windowId/.windowID/g' \
	-e 's/SDL_GetWindowFromId/SDL_GetWindowFromID/g' \
	-e 's/SDL_AudioDeviceId/SDL_AudioDeviceID/g' \
	-e 's/SDL_JoystickId/SDL_JoystickID/g' \
	-e 's/SDL_JoystickInstanceId/SDL_JoystickInstanceID/g' \
	-e 's/AVCodecId/AVCodecID/g' \
	src/**/*.cpp src/**/*.h {datasrc,scripts}/**/*.py
git checkout -- src/engine/external
```

I like this option because it presents clear rules.

Still needs fixups because of the naive replacement, I'd do this if we
want this merged.
2024-03-05 15:44:09 +01:00
..
android Fix misspellings 2022-10-25 13:51:56 -03:00
compile_libs Fix misspellings 2022-10-25 13:51:56 -03:00
languages Add RFC 3066 language tags to language index 2023-03-21 21:17:40 +01:00
check_config_variables.py Move config variables to config_variables.h, remove variables.h 2023-11-25 16:40:55 +01:00
check_dilate.sh Run shellcheck over check_dilate.sh 2020-12-08 15:02:16 +01:00
check_header_guards.py Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
check_identifiers.py Update scripts/check_identifiers.py 2022-07-27 09:37:24 +02:00
check_standard_headers.sh Check in CI that no C standard headers are used 2023-03-01 19:26:51 +01:00
check_unused_header_files.py Rewrite unused header style check shell script in Python 2023-10-14 15:21:28 +02:00
checksum.py [WIP] Require Python 3.6 (f-strings) and fix pylints 2022-07-27 09:37:24 +02:00
darwin_strip_rpath.py Support libfat directory for macOS, use arm64 libs (fixes #3250) 2021-12-20 00:17:38 +01:00
extract_identifiers.py Fix rest of pylint manually 2022-07-27 09:37:25 +02:00
fix_style.py Use realpath when comparing paths 2024-01-07 17:47:42 +01:00
gen_keys.py Handle ordinal joystick hat keys as combined cardinal hat keys 2022-12-17 17:18:01 +01:00
generate_fake_curl.py [WIP] Require Python 3.6 (f-strings) and fix pylints 2022-07-27 09:37:24 +02:00
generate_unicode_confusables_data.py Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
generate_unicode_tolower.py Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
git_revision.py scripts/git_revision.py: Allow to pass in the git shortrev 2023-03-19 18:02:04 +01:00
hash_passwords.py [WIP] Require Python 3.6 (f-strings) and fix pylints 2022-07-27 09:37:24 +02:00
import_file_score.py Rename all variables for strict camel-casing of abbreviations 2024-03-05 15:44:09 +01:00
integration_test.sh Improve integration test script 2023-12-02 18:33:46 +01:00
move_sqlite.py Improve move_sqlite script to adapt timezone 2022-12-14 18:35:01 +01:00
parse_drmingw.sh Streamline parse_drmingw.sh 2023-03-12 18:02:54 +01:00
SDL_scancode.h Regenerate key lists with latest SDL version 2023-05-30 23:39:47 +02:00
send_named_pipe.ps1 Improve Windows pipe (FIFO) support 2023-09-05 19:15:09 +02:00
tw_api.py Run flynt -a 2022-07-27 09:37:24 +02:00
unicode.py [WIP] Require Python 3.6 (f-strings) and fix pylints 2022-07-27 09:37:24 +02:00
wordlist.py [WIP] Require Python 3.6 (f-strings) and fix pylints 2022-07-27 09:37:24 +02:00