{"id":23883,"date":"2008-01-08T10:00:01","date_gmt":"2008-01-08T10:00:01","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2008\/01\/08\/generating-initials-from-a-name-is-trickier-than-you-think\/"},"modified":"2008-01-08T10:00:01","modified_gmt":"2008-01-08T10:00:01","slug":"generating-initials-from-a-name-is-trickier-than-you-think","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20080108-01\/?p=23883","title":{"rendered":"Generating initials from a name is trickier than you think"},"content":{"rendered":"<p> Even though I&#8217;m signed in, the page claims that anonymous comments are not allowed, so I&#8217;m reduced to posting my comment here and generating a trackback. <a href=\"http:\/\/weblogs.asp.net\/rmclaws\/archive\/2006\/10\/16\/Get-Initials-from-a-String-in-VB.NET.aspx\"> Some time ago, Robert McLaws wrote a function that generates initials from a name<\/a>. Let&#8217;s set aside completely the issue of non-U.S. names; the function doesn&#8217;t even handle U.S. names correctly. <\/p>\n<p> Given <i>Cal Ripken, Jr.<\/i>, the function comes up with the initials <i>JCR<\/i>, which is decidedly suboptimal. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even though I&#8217;m signed in, the page claims that anonymous comments are not allowed, so I&#8217;m reduced to posting my comment here and generating a trackback. Some time ago, Robert McLaws wrote a function that generates initials from a name. Let&#8217;s set aside completely the issue of non-U.S. names; the function doesn&#8217;t even handle U.S. [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-23883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Even though I&#8217;m signed in, the page claims that anonymous comments are not allowed, so I&#8217;m reduced to posting my comment here and generating a trackback. Some time ago, Robert McLaws wrote a function that generates initials from a name. Let&#8217;s set aside completely the issue of non-U.S. names; the function doesn&#8217;t even handle U.S. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/23883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=23883"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/23883\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=23883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=23883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=23883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}