编程中人名的大写 [英] Capitalization of Person names in programming

查看:155
本文介绍了编程中人名的大写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何正确地将人名字大写一些代码/规则吗?

Is anyone aware of some code/rules on how to capitalize the names of people correctly?


  • John Smith

  • Johan van Rensburg

  • Derrick von Gogh

  • Ruby de La Fuente

  • Peter Maclaurin

  • Garry McDonald

  • John Smith
  • Johan van Rensburg
  • Derrick von Gogh
  • Ruby de La Fuente
  • Peter Maclaurin
  • Garry McDonald

(这些可能不正确,大写可以是/ work)

(these may not be correct, just some sample names and how the capitalization could be/work)

这似乎是一个失败的战斗...

This seems like a losing battle...

代码或规则,让我知道:)

If anyone has some code or rules on when and how to capitalize names, let me know :)

干杯,
Albert

Cheers, Albert

推荐答案

在我看来,唯一合理的处理方式是让用户告诉你他们的名字应该如何大写。任何自动计划都会惹恼某人。

The only sensible way to handle it, in my opinion, is to let the users tell you how their name should be capitalized. Any automatic scheme is going to annoy someone.

这篇关于编程中人名的大写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆