⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kbde.awk

📁 开源的键盘模拟程序
💻 AWK
字号:
function NeedSkipLine(){   if ($0 ~ "^[[:blank:]]*#") return 1; # Skip comment line   if ($0 ~ "^[[:blank:]]*$") return 1; # Skip empty   line   return 0}function StripSpaces(String){   gsub("^[[:blank:]]+",           "" , String); # Streap leading whitespace   gsub("[[:blank:]]+$",           "" , String); # Streap tailing whitespace   gsub("[[:blank:]][[:blank:]]+", " ", String); # multiple whitespace to one   return String;}function print_c_do_not_change(){      print "/*"   print " * Don't change this file, it was generated automatically"   print " */"   print ""}BEGIN {   FS = ":"   Define_Prefix = "KBDE_KEY_";   MaxDefine = 0;   Quote = "\"";}{   if (NeedSkipLine() ) next; # Skip comment line or empty line   # Remove white-spaces   Name     = StripSpaces($1);   Define   = StripSpaces($2);   Make     = StripSpaces($3);   Break    = StripSpaces($4);   Label    = StripSpaces($5);   AddLabel = StripSpaces($6);   Names[Define]     = Name;   Makes[Define]     = Make;   Breaks[Define]    = Break;   Labels[Define]    = Label;   AddLabels[Define] = AddLabel;   if (int(Define) > int(MaxDefine)) MaxDefine = Define;}  END {      print_func();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -