chrtbl(1M)


chrtbl -- ╩╕╗·╩¼╬αÑ╞í╝Ñ╓Ñδñ¬ñΦñ╙╩╤┤╣Ñ╞í╝Ñ╓Ñδñ╬║ε└«

╖┴╝░

chrtbl [file]

╡í╟╜└Γ╠└

chrtbl Ñ│Ñ▐Ñ≤Ñ╔ñ╧íó╩╕╗·╩¼╬αíó┬τ╩╕╗·╛«╩╕╗·╩╤┤╣íó╩╕╗·Ñ╗Ñ├Ñ╚╔²íóñ¬ñΦñ╙┐⌠├═╩╘╜╕ñ╬╛≡╩≤ñ¼│╩╟╝ñ╡ñ∞ñ╞ñññδ 2 ñ─ñ╬Ñ╞í╝Ñ╓Ñδñ≥║ε└«ñ╖ñ▐ñ╣íúÑ╞í╝Ñ╓Ñδñ╬ 1 ñ─ñ╧íóÑ╞í╝Ñ╓Ñδ║≈░·ñ≥╗╚═╤ñ╖ñ╞╩╕╗·╩¼╬αñ╬╖Φ─Ωíó╩╕╗·ñ╬╩╤┤╣(ctype(3C) ╗▓╛╚)ñ≥╣╘ññíóñ╡ñΘñ╦╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ñ╬ 1 ñ─ñ╬├µñ╦ñóñδ 1 ñ─ñ╬╩╕╗·ñ╬Ñ╨ÑñÑ╚╔²ñ╚▓Φ╠╠╛σñ╬╔²ñ≥╕½ñ─ñ▒ñδñ│ñ╚ñ¼ñ╟ñ¡ñδñΦñªñ╦íóÑ│í╝Ñ╔▓╜ñ╡ñ∞ñ┐Ñ╨ÑñÑ╚ñ╬╟█╬≤ñ╟íó(257*2)+7 ñ╟ñ╣íúñΓñª 1 ñ─ñ╬Ñ╞í╝Ñ╓Ñδñ╧íó╚≤▓▀╩╛┐⌠╬╠ñ╬╜±╝░ñ╦ñ─ñññ╞ñ╬╛≡╩≤ñ≥┤▐ñ≤ñ╟ñññδñΓñ╬ñ╟ñ╣íú║╟╜Θñ╬ 1 Ñ╨ÑñÑ╚ñ╧íó╛«┐⌠░╠╢Φ└┌ñΩ╡¡╣µñ≥╗╪─Ωñ╖ñ╞ñ¬ñΩíó╝íñ╬ 1 Ñ╨ÑñÑ╚ñ╧└Θñ╬░╠╢Φ└┌ñΩ╡¡╣µñ≥╗╪─Ωñ╖ñ╞ñññ▐ñ╣íú╗─ñΩñ╬Ñ╨ÑñÑ╚ñ╧íóÑ╠Ñδñ╟╜¬╬╗ñ╣ñδÑ░Ñδí╝Ñ╫▓╜ñ≥╝¿ñ╣╩╕╗·╬≤ñ½ñΘñ╩ñΩñ▐ñ╣(╩╕╗·╬≤ñ╬│╞═╫┴╟ñ╧íó╜±╝░▓╜ñ╡ñ∞ñ┐╚≤▓▀╩╛╬╠ñ╬ѽÑ∞Ñ≤Ñ╚Ñ░Ñδí╝Ñ╫ñ½ñΘñ╩ñδ╖σ┐⌠ñ≥╔╜ñ∩ñ╣└░┐⌠ñ╚ñ▀ñ╩ñ╡ñ∞ñ▐ñ╣)íú

chrtbl ñ╧ѵí╝Ñ╢─Ω╡┴╩╕╗·ñ╬╩¼╬αñ╚╩╤┤╣╛≡╩≤ñ≥ file ñ½ñΘ╞╔ñ▀╣■ñ▀íó3 ñ─ñ╬╜╨╬╧Ñ╒ÑíÑñÑδñ≥ѽÑ∞Ñ≤Ñ╚Ñ╟ÑúÑ∞Ñ»Ñ╚ÑΩñ╦║ε└«ñ╖ñ▐ñ╣íúfile ñ≥╣╜└«ñ╣ñδ╛∞╣τíó╜╨╚»┼└ñ╚ñ╖ñ╞ /usr/lib/locale/C/chrtbl_C Ñ╒ÑíÑñÑδñ≥╬πñ╚ñ╖ñ▐ñ╣íúÑ¿Ñ≤Ñ╚ÑΩñ≥▓├ñ¿ñ╞ñΓñΦñññ╟ñ╣ñ¼íóñ│ñ╬╛∞╣τÑ╖Ñ╣Ñ╞Ñαñ╬╗╪─Ωñ╖ñ┐╞├─Ω├═ñ≥╩╤╣╣ñ╖ñ╞ñ╧ñññ▒ñ▐ñ╗ñ≤íúñ┐ñ╚ñ¿ñ╨┬╛ñ╬ locale ñ╬ñ┐ñßñ╦íó8 Ñ╙Ñ├Ñ╚ñ╬Ñ¿Ñ≤Ñ╚ÑΩñ≥ñ│ñ╬Ñ╒ÑíÑñÑδ├µñ╦╢í╡δñ╡ñ∞ñ╞ñññδ ASCII ─Ω╡┴ñ╦▓├ñ¿ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú

ctype.c ñ╬├µñ╦ñóñδ╟█╬≤ñ╬║╟╜Θñ╬ 257 Ñ╨ÑñÑ╚ñ╧╩╕╗·╩¼╬αñ╦╗╚═╤ñ╡ñ∞ñ▐ñ╣íú╟█╬≤ñ╬ñ│ñ∞ñΘñ╬Ñ╨ÑñÑ╚ñ≥╜Θ┤ⁿ└▀─Ωñ╣ñδñ┐ñßñ╦╗╚═╤ñ╡ñ∞ñδ╩╕╗·ñ╧íó/usr/include/ ctype.h ñ╟─Ω╡┴ñ╡ñ∞ñ╞ñññδ╩╕╗·╩¼╬αñ≥╔╜ñ╖ñ╞ñññ▐ñ╣íúñ┐ñ╚ñ¿ñ╨``_L''ñ╧╩╕╗·ñ¼╛«╩╕╗·ñ╟ñóñδñ│ñ╚ñ≥░╒╠úñ╖íó``_S|_B''ñ╧╩╕╗·ñ¼╢Φ└┌ñΩ╩╕╗·ñ╟Ñ╓ÑΘÑ≤Ñ»ñ╟ñóñδñ│ñ╚ñ≥░╒╠úñ╖ñ╞ñññ▐ñ╣íú╟█╬≤ñ╬ 2 ╚╓╠▄ñ╬ 257 Ñ╨ÑñÑ╚ñ╧╩╕╗·╩╤┤╣ñ╦╗╚═╤ñ╡ñ∞ñ▐ñ╣íú╟█╬≤ñ╬ñ│ñ∞ñΘñ╬Ñ╨ÑñÑ╚ñ╧íó╩╤┤╣╛≡╩≤ñ≥═┐ñ¿ñ╞ñññ╩ññ╩╕╗·ñ¼ñ╜ñ∞╝½┐╚ñ╦╩╤┤╣ñ╡ñ∞ñδñΦñªñ╦╜Θ┤ⁿ└▀─Ωñ╡ñ∞ñ▐ñ╣íú╩╤┤╣╛≡╩≤ñ≥═┐ñ¿ñ┐╛∞╣τñ╦ñ╧íóñ│ñ╬Ñ┌Ñóñ╬║╟╜Θñ╬├═ñ╧íó2 ╚╓╠▄ñ╬├═ñ¼─╠╛∩ñ╦│╩╟╝ñ╡ñ∞ñδ╛∞╜Ωñ╦│╩╟╝ñ╡ñ∞íóñ▐ñ┐ñ╜ñ╬╡╒ñ╦ 2 ╚╓╠▄ñ╬├═ñ╧íó║╟╜Θñ╬├═ñ¼─╠╛∩ñ╦│╩╟╝ñ╡ñ∞ñδ╛∞╜Ωñ╦│╩╟╝ñ╡ñ∞ñ▐ñ╣íúñ┐ñ╚ñ¿ñ╨ <0x41 0x61> ñ≥═┐ñ¿ñ┐ñ╚ñ╣ñδñ╚íó0x61 ñ╧íó0x41 ñ¼─╠╛∩│╩╟╝ñ╡ñ∞ñ╞ñññδ╛∞╜Ωñ╦│╩╟╝ñ╡ñ∞íó0x41 ñ╧íó0x61 ñ¼─╠╛∩│╩╟╝ñ╡ñ∞ñ╞ñññδ╛∞╜Ωñ╦│╩╟╝ñ╡ñ∞ñ▐ñ╣íú║╟╕σñ╬ 7 Ñ╨ÑñÑ╚ñ╧íó║╟╣Γ 3 ñ─ñ▐ñ╟ñ╬╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ñ╦┬╨ñ╣ñδ╩╕╗·╔²╛≡╩≤ñ╦╗╚═╤ñ╡ñ∞ñ▐ñ╣íú

2 ╚╓╠▄ñ╬╜╨╬╧Ñ╒ÑíÑñÑδ(Ñ╟í╝Ñ┐Ñ╒ÑíÑñÑδ)ñ╦ñ╧╞▒ñ╕╛≡╩≤ñ¼╞■ñ├ñ╞ñññ▐ñ╣ñ¼íó╩╕╗·╩¼╬αñ¬ñΦñ╙╩╤┤╣ñ╬Ñδí╝Ñ┴Ñ≤ñ╟╕·╬¿┼¬ñ╦╗╚═╤ñ╟ñ¡ñδñΦñªñ╦╣╜├█ñ╡ñ∞ñ╞ñññ▐ñ╣(ctype(3C) ╗▓╛╚)íúñ│ñ╬╜╨╬╧Ñ╒ÑíÑñÑδñ╬╠╛┴░ñ╧íófile ñ½ñΘ╞╔ñ▀╣■ñ≤ñ└Ñ¡í╝Ñ∩í╝Ñ╔ LC_CTYPE ñ╦│ΣñΩ┼÷ñ╞ñΘñ∞ñ┐├═ñ╟ñ╣íúñ│ñ╬Ñ╒ÑíÑñÑδñ╧íó╩╕╗·╩¼╬αñ╚╩╤┤╣ñ╬Ñδí╝Ñ┴Ñ≤ñ╟╗╚═╤ñ╣ñδ┴░ñ╦íóÑ╣í╝Ñ╤ѵí╝Ñ╢ñ½ñóñδñññ╧Ñ░Ñδí╝Ñ╫ bin ñ╟ñóñδÑßÑ≤Ñ╨ñ¼íó╠╛┴░ LC_CTYPE ñ≥╗²ñ─ /usr/lib/locale/locale Ñ╟ÑúÑ∞Ñ»Ñ╚ÑΩñ╦ÑñÑ≤Ñ╣Ñ╚í╝Ñδñ╖ñ╩ñ▒ñ∞ñ╨ñ╩ñΩñ▐ñ╗ñ≤íúñ│ñ╬Ñ╒ÑíÑñÑδñ╧ѵí╝Ñ╢íóÑ░Ñδí╝Ñ╫íóñ¬ñΦñ╙ñ╜ñ╬┬╛ñ╬ÑßÑ≤Ñ╨ñ╦ñΦñ├ñ╞╞╔ñ▀╣■ñ▀▓─╟╜ñ╟ñ╩ñ▒ñ∞ñ╨ñ╩ñΩñ▐ñ╗ñ≤íú┬╛ñ╬╡÷▓─ñ╧└▀─Ωñ╖ñ╞ñ╧ñññ▒ñ▐ñ╗ñ≤íúñ│ñ╬Ñ╒ÑíÑñÑδñ╬├µñ╦ñóñδ╩╕╗·╩¼╬αÑ╞í╝Ñ╓Ñδñ¬ñΦñ╙╩╤┤╣Ñ╞í╝Ñ╓Ñδñ≥╗╚═╤ñ╣ñδñ┐ñßñ╦ñ╧íóLC_CTYPE ┤─╢¡╩╤┐⌠ñ≥┼¼└┌ñ╦└▀─Ωñ╖ñ▐ñ╣(environ(5) ñ▐ñ┐ñ╧ setlocale(3C) ╗▓╛╚)íú

3 ╚╓╠▄ñ╬╜╨╬╧Ñ╒ÑíÑñÑδ(Ñ╟í╝Ñ┐Ñ╒ÑíÑñÑδ)ñ╧íó┐⌠├═╩╘╜╕╛≡╩≤ñ¼╞■╬╧Ñ╒ÑíÑñÑδñ╦ñ¬ñññ╞╗╪─Ωñ╡ñ∞ñ╞ñññδ╛∞╣τñ╦╕┬ñΩ║ε└«ñ╡ñ∞ñ▐ñ╣íúñ│ñ╬╜╨╬╧Ñ╒ÑíÑñÑδñ╬╠╛┴░ñ╧íófile ñ½ñΘ╞╔ñ▀╣■ñ≤ñ└Ñ¡í╝Ñ∩í╝Ñ╔ LC_NUMERIC ñ╦│ΣñΩ┼÷ñ╞ñΘñ∞ñ┐├═ñ╟ñ╣íúñ│ñ╬Ñ╒ÑíÑñÑδñ╧íó╗╚═╤ñ╣ñδ┴░ñ╦Ñ╣í╝Ñ╤ѵí╝Ñ╢ñ½ñóñδñññ╧Ñ░Ñδí╝Ñ╫ bin ñ╟ñóñδÑßÑ≤Ñ╨ñ¼íó╠╛┴░ LC_NUMERIC ñ≥╗²ñ─ /usr/lib/locale/locale Ñ╟ÑúÑ∞Ñ»Ñ╚ÑΩñ╦ÑñÑ≤Ñ╣Ñ╚í╝Ñδñ╖ñ╩ñ▒ñ∞ñ╨ñ╩ñΩñ▐ñ╗ñ≤íúñ│ñ╬Ñ╒ÑíÑñÑδñ╧ѵí╝Ñ╢íóÑ░Ñδí╝Ñ╫ñ¬ñΦñ╙ñ╜ñ╬┬╛ñ╬ÑßÑ≤Ñ╨ñ╦ñΦñ├ñ╞╞╔ñ▀╣■ñ▀▓─╟╜ñ╟ñ╩ñ▒ñ∞ñ╨ñ╩ñΩñ▐ñ╗ñ≤íú┬╛ñ╬╡÷▓─ñ╧└▀─Ωñ╖ñ╞ñ╧ñññ▒ñ▐ñ╗ñ≤íúñ│ñ╬Ñ╒ÑíÑñÑδñ╬├µñ╬┐⌠├═╩╘╜╕╛≡╩≤ñ≥╗╚═╤ñ╣ñδñ┐ñßñ╦ñ╧íóLC_NUMERIC ┤─╢¡╩╤┐⌠ñ≥┼¼└┌ñ╦└▀─Ωñ╖ñ▐ñ╣(environ(5) ñ▐ñ┐ñ╧ setlocale(3C) ╗▓╛╚)íú

Ñ╒ÑíÑñÑδ LC_CTYPE ñ¬ñΦñ╙ LC_NUMERIC ñ≥ÑñÑ≤Ñ╣Ñ╚í╝Ñδñ╣ñδ locale ñ╬╠╛┴░ñ╧ file ñ╟─Ω╡┴ñ╡ñ∞ñ╞ñññδ╡¼╠≤ñ╦╜╛ñ├ñ╞ñññ╩ñ▒ñ∞ñ╨ñ╩ñΩñ▐ñ╗ñ≤íúñ┐ñ╚ñ¿ñ╨Ñ╒ÑΘÑ≤Ñ╣╕∞ñ╬╡¼╠≤ñ¼─Ω╡┴ñ╡ñ∞ñ┐╛∞╣τíóñ▐ñ┐ Ñ╖Ñ╣Ñ╞Ñα╛σñ╬Ñ╒ÑΘÑ≤Ñ╣ locale ñ╦┬╨ñ╣ñδ╠╛┴░ñ¼ french ñ╟ñóñδ╛∞╣τñ╦íóñ╜ñ╬Ñ╒ÑíÑñÑδñ≥ /usr/lib/locale/french ñ╦ÑñÑ≤Ñ╣Ñ╚í╝Ñδñ╖ñ╩ñ▒ñ∞ñ╨ñ╩ñΩñ▐ñ╗ñ≤íú

╞■╬╧Ñ╒ÑíÑñÑδñ¼═┐ñ¿ñΘñ∞ñ╞ñññ╩ññ╛∞╣τíóñóñδñññ╧░·ñ¡┐⌠ " - " ñ¼ñóñ├ñ┐╛∞╣τñ╦ñ╧íóchrtbl ñ╧╔╕╜α╞■╬╧ñ½ñΘ╞╔ñ▀╣■ñ▀ñ▐ñ╣íú

file ñ╬╣╜╩╕ñ≥═╤ñññ╞íóѵí╝Ñ╢ñ╧íóchrtbl ñ╦ñΦñ├ñ╞║ε└«ñ╡ñ∞ñ┐Ñ╟í╝Ñ┐Ñ╒ÑíÑñÑδñ╬╠╛┴░íó╩╕╗·╩¼╬αñ╪ñ╬╩╕╗·ñ╬│Σ┼÷ñ╞íó┬τ╩╕╗·╛«╩╕╗·ñ╬┤╪╖╕íó3 ñ─ñ▐ñ╟ñ╬╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ñ╦┬╨ñ╣ñδÑ╨ÑñÑ╚╔²ñ╚▓Φ╠╠╔²íóñ¬ñΦñ╙┐⌠├═╩╘╜╕ñ╬ 2 ñ─ñ╬╣α╠▄íó╛«┐⌠░╠╢Φ└┌ñΩ╡¡╣µñ╚└Θñ╬░╠╢Φ└┌ñΩ╡¡╣µñ╩ñ╔ñ≥─Ω╡┴ñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íúchrtbl ñ¼╟º╝▒ñ╣ñδÑ¡í╝Ñ∩í╝Ñ╔ñ╧╝íñ╬ñ╚ñ¬ñΩñ╟ñ╣íú

LC_CTYPE
╩╕╗·╩¼╬αíó╩╤┤╣íóñ¬ñΦñ╙╔²╛≡╩≤ñ≥│╩╟╝ñ╣ñδñ┐ñß chrtbl ñ¼║ε└«ñ╣ñδÑ╟í╝Ñ┐Ñ╒ÑíÑñÑδñ╬╠╛┴░ñ╟ñ╣íú

isupper
┬τ╩╕╗·ñ╚ñ╖ñ╞╩¼╬αñ╡ñ∞ñδ╩╕╗·Ñ│í╝Ñ╔ñ╟ñ╣íú

islower
╛«╩╕╗·ñ╚ñ╖ñ╞╩¼╬αñ╡ñ∞ñδ╩╕╗·Ñ│í╝Ñ╔ñ╟ñ╣íú

isdigit
┐⌠├═ñ╚ñ╖ñ╞╩¼╬αñ╡ñ∞ñδ╩╕╗·Ñ│í╝Ñ╔ñ╟ñ╣íú

isspace
╢⌡╟≥(╢Φ└┌ñΩ)╩╕╗·ñ╚ñ╖ñ╞╩¼╬αñ╡ñ∞ñδ╩╕╗·Ñ│í╝Ñ╔ñ╟ñ╣íú

ispunct
╢τ╞╔╩╕╗·ñ╚ñ╖ñ╞╩¼╬αñ╡ñ∞ñδ╩╕╗·Ñ│í╝Ñ╔ñ╟ñ╣íú

iscntrl
└⌐╕µ╩╕╗·ñ╚ñ╖ñ╞╩¼╬αñ╡ñ∞ñδ╩╕╗·Ñ│í╝Ñ╔ñ╟ñ╣íú

isblank
Ñ╓ÑΘÑ≤Ñ»(╢⌡╟≥)╩╕╗·ñ╚ñ╖ñ╞╩¼╬αñ╡ñ∞ñδ╩╕╗·Ñ│í╝Ñ╔ñ╟ñ╣íú

isxdigit
16 ┐╩┐⌠ñ╚ñ╖ñ╞╩¼╬αñ╡ñ∞ñδ╩╕╗·Ñ│í╝Ñ╔ñ╟ñ╣íú

ul
┬τ╩╕╗·í┐╛«╩╕╗·ñ╬┤╪╖╕ñ╟ñ╣íú

cswidth
Ñ╨ÑñÑ╚ñ¬ñΦñ╙▓Φ╠╠╔²ñ╬╛≡╩≤(╛╩╬¼╗■ñ╟ñ╧íóñ╜ñ∞ñ╛ñ∞ 1 ╩╕╗·╔²)ñ╟ñ╣íú

LC_NUMERIC
┐⌠├═╩╘╜╕╛≡╩≤ñ≥│╩╟╝ñ╣ñδñ┐ñß chrtbl ñ╦ñΦñ├ñ╞║ε└«ñ╡ñ∞ñδÑ╟í╝Ñ┐Ñ╒ÑíÑñÑδñ╬╠╛┴░ñ╟ñ╣íú

decimal_point
╛«┐⌠░╠╢Φ└┌ñΩ╡¡╣µñ╟ñ╣íú

thousands_sep
└Θñ╬░╠╢Φ└┌ñΩ╡¡╣µñ╟ñ╣íú

grouping
╜±╝░▓╜╕σñ╬╚≤▓▀╩╛┐⌠╬╠ñ╬░╠╝ΦñΩ╡¡╣µñ╬░╠├╓ñ≥╖Φ─Ωñ╣ñδ╖σ┐⌠ñ≥╝¿ñ╣└░┐⌠├═ñ╚ñ╖ñ╞╟º╝▒ñ╡ñ∞ñδ│╞═╫┴╟ñ╬ñóñδ╩╕╗·╬≤
║╟╜Θñ╬ѽÑΘÑαñ╦ # ñ╬ñóñδ╣╘ñ╧íñÑ│ÑßÑ≤Ñ╚ñ╚ñ╖ñ╞╜Φ═²ñ╡ñ∞╠╡╗δñ╡ñ∞ñ▐ñ╣íú╢⌡╟≥╣╘ñΓ╠╡╗δñ╡ñ∞ñ▐ñ╣íú

isupperíóisloweríóisdigitíóisspaceíóispunctíóiscntrlíóisblankíóisxdigit ñ¬ñΦñ╙ ul ñ╦┬╨ñ╣ñδ╩╕╗·ñ╧íó16 ┐╩┐⌠ñ▐ñ┐ñ╧ 8 ┐╩┐⌠ñ╬─Ω┐⌠ñ╚ñ╖ñ╞╔╜ñ╣ñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣(ñ┐ñ╚ñ¿ñ╨╩╕╗·``a''ñ╧íó16 ┐╩┐⌠ñ╟ñ╧ 0x61íó8 ┐╩┐⌠ñ╟ñ╧ 0141 ñ╟╔╜ñ╣ñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣)íú16 ┐╩┐⌠ñ▐ñ┐ñ╧ 8 ┐╩┐⌠ñ╬─Ω┐⌠ñ╧íó1 ñ─░╩╛σñ╬╢⌡╟≥ñΣÑ┐Ñ╓╩╕╗·ñ╟╩¼╬Ññ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú

Ñ└Ñ├Ñ╖Ñσ╩╕╗·(-)ñ≥╗╚═╤ñ╖ñ╞íó╧ó┬│ñ╣ñδ┐⌠ñ╬╚╧░╧ñ≥╗╪─Ωñ╣ñδñ│ñ╚ñ¼ñ╟ñ¡ñ▐ñ╣íú┐⌠ñ╚Ñ└Ñ├Ñ╖Ñσ╩╕╗·ñ╚ñ≥╩¼╬Ññ╣ñδñ┐ñßñ╦ 1 ╕─░╩╛σñ╬╢⌡╟≥╩╕╗·ñ≥╗╚═╤ñ╖ñ╞ñΓíó╗╚═╤ñ╖ñ╩ñ»ñ╞ñΓñ½ñ▐ñññ▐ñ╗ñ≤íú

Ñ╨Ñ├Ñ»Ñ╣ÑΘÑ├Ñ╖Ñσ╩╕╗·(\)ñ≥╣╘ñ╬╖╤┬│ñ≥╔╜ñ∩ñ╣ñ┐ñßñ╦╗╚═╤ñ╖ñ▐ñ╣íúÑ╨Ñ├Ñ»Ñ╣ÑΘÑ├Ñ╖Ñσ╩╕╗·ñ╬╕σñ╦═Φñ╞ñΦñññ╬ñ╧╔ⁿ╡ó▓■╣╘╩╕╗·ñ└ñ▒ñ╟ñ╣íú

┬τ╩╕╗·í┐╛«╩╕╗·ñ╬┤╪╖╕(ul)ñ╧íó8 ┐╩┐⌠ñ▐ñ┐ñ╧ 16 ┐╩┐⌠ñ╬ 1 ┴╚ñ╬─Ω┐⌠ ñ╚ñ╖ñ╞╔╜ñ╡ñ∞ñ▐ñ╣íú<uppercase_character lowercase_character> ñ│ñ∞ñΘñ╬ 2 ñ─ñ╬─Ω┐⌠ñ╧ 1 ░╩╛σñ╬╢⌡╟≥╩╕╗·ñ╦ñΦñ├ñ╞╩¼╬Ññ╖ñ▐ñ╣íú│╤ñ½ñ├ñ│(< >)ñ≥┐⌠ñ╚╩¼╬Ññ╣ñδñ┐ñß╢⌡╟≥╩╕╗·ñ≥╞■ñ∞ñ╞ñΓ╞■ñ∞ñ╩ñ»ñ╞ñΓ╣╜ñññ▐ñ╗ñ≤íú

░╩▓╝ñ╦╝¿ñ╖ñ┐ñ╬ñ╧íócswidth ñ╦┬╨ñ╣ñδ╞■╬╧╗╪─Ωñ╬╜±╝░ñ╟ñ╣íú

cswidth n1[[:s1][,n2[:s2][,n3[:s3]]]]

ñ│ñ│ñ╟íó

n1
╔¼═╫ñ╩íó╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ 1 ñ╦┬╨ñ╣ñδÑ╨ÑñÑ╚╔²

s1
╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ 1 ñ╦┬╨ñ╣ñδ▓Φ╠╠╔²

n2
╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ 2 ñ╦┬╨ñ╣ñδÑ╨ÑñÑ╚╔²

s2
╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ 2 ñ╦┬╨ñ╣ñδ▓Φ╠╠╔²

n3
╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ 3 ñ╦┬╨ñ╣ñδÑ╨ÑñÑ╚╔²

s3
╩Σ╜⌡Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚ 3 ñ╦┬╨ñ╣ñδ▓Φ╠╠╔²
decimal_point ñ╚ thousands_sep ñ╧íó╢Φ└┌ñΩ╩╕╗·ñ≥═┐ñ¿ñδ░∞╩╕╗·ñ╦ñΦñ├ñ╞╗╪─Ωñ╡ñ∞ñ▐ñ╣íúgrouping ñ╧íó8 ┐╩ñ▐ñ┐ñ╧ 16 ┐╩┐⌠ñ╟╔╜ñ╡ñ∞ñ┐╩╕╗·╬≤ñ≥░·═╤╔Σñ╟ñ»ñ»ñδñ│ñ╚ñ╦ñΦñ├ñ╞╗╪─Ωñ╡ñ∞ñ▐ñ╣íúñ┐ñ╚ñ¿ñ╨ \3 ñ▐ñ┐ñ╧ \x3 ñ╧íó╩╕╗·╬≤ñ╬ÑßÑ≤Ñ╨ñ╬├═ñ≥ 3 ñ╚└▀─Ωñ╣ñδñ╬ñ╦╗╚═╤ñ╡ñ∞ñ▐ñ╣íú

C ÑφÑ▒í╝Ñδñ▐ñ┐ñ╧ 10 ┐╩┐⌠Ñ▌ÑñÑ≤Ñ╚╩╕╗·ñ¼─Ω╡┴ñ╡ñ∞ñ╞ñññ╩ññÑφÑ▒í╝Ñδñ╟ñ╧íó10 ┐╩┐⌠Ñ▌ÑñÑ≤Ñ╚╩╕╗·ñ╧Ñ╘ÑΩѬÑ╔(.)ñ¼╛╩╬¼╗■├═ñ╦ñ╩ñΩñ▐ñ╣íú

╗╚═╤╬π

░╩▓╝ñ╦╝¿ñ╣ñ╬ñ╧íóusa ñ╚ñññª╠╛┴░ñ╬Ñ╒ÑíÑñÑδ╛σñ¬ñΦñ╙Ñ╒ÑíÑñÑδ╠╛ num_usa ñ╬├µñ╬╚≤▓▀╩╛┐⌠╬╠╜±╝░╛≡╩≤╛σñ╟ USA_ENGLISH Ñ│í╝Ñ╔Ñ╗Ñ├Ñ╚─Ω╡┴Ñ╞í╝Ñ╓Ñδñ≥║ε└«ñ╣ñδñ┐ñßñ╦╗╚═╤ñ╡ñ∞ñδ╞■╬╧Ñ╒ÑíÑñÑδñ╬╬πñ╟ñ╣íú
 
   LC_CTYPE  usa 
   isupper   0x41 - 0x5a 
   islower   0x61 - 0x7a 
   isdigit   0x30 - 0x39 
   isspace   0x20 0x9 - 0xd 
   ispunct   0x21 - 0x2f	0x3a - 0x40	\ 
             0x5b - 0x60	0x7b - 0x7e 
   iscntrl   0x0 - 0x1f	0x7f 
   isblank   0x20 
   isxdigit  0x30 - 0x39	0x61 - 0x66	\ 
             0x41 - 0x46 
   ul       <0x41 0x61> <0x42 0x62> <0x43 0x63>  \ 
            <0x44 0x64> <0x45 0x65> <0x46 0x66>  \ 
            <0x47 0x67> <0x48 0x68> <0x49 0x69>  \ 
            <0x4a 0x6a> <0x4b 0x6b> <0x4c 0x6c>  \ 
            <0x4d 0x6d> <0x4e 0x6e> <0x4f 0x6f>  \ 
            <0x50 0x70> <0x51 0x71> <0x52 0x72>  \ 
            <0x53 0x73> <0x54 0x74> <0x55 0x75>  \ 
            <0x56 0x76> <0x57 0x77> <0x58 0x78>  \ 
            <0x59 0x79> <0x5a 0x7a> 
   cswidth		1:1,0:0,0:0 
   LC_NUMERIC	num_usa 
   decimal_point	. 
   thousands_sep	, 
   grouping	"\3" 

Ñ╒ÑíÑñÑδ

/usr/lib/locale/locale/LC_CTYPE
chrtbl ñ╬║ε└«ñ╣ñδ╩╕╗·╩¼╬αíó╩╤┤╣ñ¬ñΦñ╙╩╕╗·Ñ╗Ñ├Ñ╚╔²╛≡╩≤ñ¼│╩╟╝ñ╡ñ∞ñ╞ñññδÑ╟í╝Ñ┐Ñ╒ÑíÑñÑδñ╟ñ╣íú

/usr/lib/locale/locale/LC_NUMERIC
chrtbl ñ╬║ε└«ñ╣ñδ┐⌠├═╩╘╜╕╛≡╩≤ñ¼│╩╟╝ñ╡ñ∞ñ╞ñññδÑ╟í╝Ñ┐Ñ╒ÑíÑñÑδñ╟ñ╣íú

/usr/include/ctype.h
╩╕╗·╩¼╬αñ¬ñΦñ╙╩╤┤╣Ñδí╝Ñ┴Ñ≤ñ╟╗╚═╤ñ╡ñ∞ñδ╛≡╩≤ñ¼│╩╟╝ñ╡ñ∞ñ╞ñññδÑ╪Ñ├Ñ└Ñ╒ÑíÑñÑδñ╟ñ╣íú

/usr/lib/locale/C/chrtbl_C
╛╩╬¼╗■ñ╬ locale ñ╬ LC_CTYPE ñ╚ LC_NUMERIC ñ╬║ε└«ñ╦╗╚═╤ñ╡ñ∞ñδ╞■╬╧Ñ╒ÑíÑñÑδñ╟ñ╣íú

┤╪╧ó╣α╠▄

ctype(3C), environ(5), setlocale(3C)

┐╟├╟

chrtbl ñ¼╜╨╬╧ñ╣ñδÑ¿ÑΘí╝ÑßÑ├Ñ╗í╝Ñ╕ñ╧╞╔ñßñ╨═²▓≥ñ╟ñ¡ñδñΓñ╬ñ╟ñ╣íúñ│ñ∞ñΘñ╬ÑßÑ├Ñ╗í╝Ñ╕ñ╧íóÑ│Ñ▐Ñ≤Ñ╔╣╘ñ╟ñ╬Ñ¿ÑΘí╝ñΣíó╞■╬╧Ñ╒ÑíÑñÑδ╞Γñ╟┴°╢°ñ╖ñ┐╣╜╩╕Ñ¿ÑΘí╝ñ≥╝¿ñ╖ñ▐ñ╣íú

├φ░╒

Ñ╒ÑíÑñÑδ /usr/lib/locale/C ñ≥╩╤╣╣ñ╣ñδñ╚íóÑ╖Ñ╣Ñ╞Ñαñ¼═╜┤ⁿñ╗ñ╠╞░║εñ≥╣╘ñªñ│ñ╚ñ¼ñóñΩñ▐ñ╣íú
SCO UnixWare Forum Beta Release (BL12) -- September 1997
© 1997 The Santa Cruz Operation, Inc. All rights reserved.