Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CString::MakeUpper() and MakeLower() for Non-English language

CString::MakeUpper() and MakeLower() for Non-English language

Scheduled Pinned Locked Moved C / C++ / MFC
question
11 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    includeh10
    wrote on last edited by
    #1

    . Merry Christmas, everyone! Do functions MakeUpper() and MakeLower() of CString work well for Non-English languages, such as French, German, Greek, Japanese, Korean etc? I don't know if the languages specified above are case-sensitive, my question is: Can MakeUpper() and MakeLower() change case for Non-English characters if they are case-sensitive?

    T D R 3 Replies Last reply
    0
    • I includeh10

      . Merry Christmas, everyone! Do functions MakeUpper() and MakeLower() of CString work well for Non-English languages, such as French, German, Greek, Japanese, Korean etc? I don't know if the languages specified above are case-sensitive, my question is: Can MakeUpper() and MakeLower() change case for Non-English characters if they are case-sensitive?

      T Offline
      T Offline
      Tim Craig
      wrote on last edited by
      #2

      I would expect them to work well with European languages based on the Roman, Greek, and Cyrillic alphabets. Asian languages are another story. Japanese has three character sets; Kanji (Chinese), Hiragana, and Katakana. Kanji is not an alphabet and as such has no capitalization. Hiragan and Katakana are phoentic character sets where each character represents a syallable. They also have no capital forms. I really don't know about Middle Eastern languages.

      You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

      I 1 Reply Last reply
      0
      • T Tim Craig

        I would expect them to work well with European languages based on the Roman, Greek, and Cyrillic alphabets. Asian languages are another story. Japanese has three character sets; Kanji (Chinese), Hiragana, and Katakana. Kanji is not an alphabet and as such has no capitalization. Hiragan and Katakana are phoentic character sets where each character represents a syallable. They also have no capital forms. I really don't know about Middle Eastern languages.

        You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

        I Offline
        I Offline
        includeh10
        wrote on last edited by
        #3

        Hi, thanks, you look like a language expert. "I would expect:" Yes for following languages: French German Greek Latin No for: Japanese Korean How about followings? Italian Russian Portuguese Spanish Is this your opinion? Could you write down a list as above, so it is clearer? Could you also add more main languages as you know?

        N T 2 Replies Last reply
        0
        • I includeh10

          Hi, thanks, you look like a language expert. "I would expect:" Yes for following languages: French German Greek Latin No for: Japanese Korean How about followings? Italian Russian Portuguese Spanish Is this your opinion? Could you write down a list as above, so it is clearer? Could you also add more main languages as you know?

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          Tim Craig wrote:

          "I would expect them to work well with European languages based on the Roman, Greek, and Cyrillic alphabets"

          includeh10 wrote:

          "How about followings? Italian Russian Portuguese Spanish "

          Cyrillic is for Russia and many of the North-Middle East-Europe lands. The rest are include in Roman alphabet. Same as Flamingo, Holandish... North Europe (Finland, Norway and other scandinavian countries), Turkey, Poland and some others are based in roman alphabet, but they have some special characters (specially vocals), but in my opinion they should accept the case sensitive as well.

          Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpfull answers is nice, but saying thanks can be even nicer.

          1 Reply Last reply
          0
          • I includeh10

            Hi, thanks, you look like a language expert. "I would expect:" Yes for following languages: French German Greek Latin No for: Japanese Korean How about followings? Italian Russian Portuguese Spanish Is this your opinion? Could you write down a list as above, so it is clearer? Could you also add more main languages as you know?

            T Offline
            T Offline
            Tim Craig
            wrote on last edited by
            #5

            Last time I try to help you, jerk. :mad:

            You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

            L 1 Reply Last reply
            0
            • T Tim Craig

              Last time I try to help you, jerk. :mad:

              You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Tim Craig wrote:

              Last time I try to help you, jerk.

              :confused: I could be wrong, but I don't think he meant to offend you.

              L u n a t i c F r i n g e

              T 1 Reply Last reply
              0
              • L Lost User

                Tim Craig wrote:

                Last time I try to help you, jerk.

                :confused: I could be wrong, but I don't think he meant to offend you.

                L u n a t i c F r i n g e

                T Offline
                T Offline
                Tim Craig
                wrote on last edited by
                #7

                Sounded mocking to me and then he seemed to demand more. Seemed in tune with his past performance here.

                You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

                L 1 Reply Last reply
                0
                • T Tim Craig

                  Sounded mocking to me and then he seemed to demand more. Seemed in tune with his past performance here.

                  You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Unfamiliar with the past performance. BTW, it wasn't me that gave you a negative vote. Didn't think that was really warranted. :rolleyes:

                  L u n a t i c F r i n g e

                  T 1 Reply Last reply
                  0
                  • L Lost User

                    Unfamiliar with the past performance. BTW, it wasn't me that gave you a negative vote. Didn't think that was really warranted. :rolleyes:

                    L u n a t i c F r i n g e

                    T Offline
                    T Offline
                    Tim Craig
                    wrote on last edited by
                    #9

                    He's been called on his behavior here a number of times in the past by the regulars. He seems to think people are here just to serve his pleasure. I had already started to write the reply to his question when I realized it was him and nearly deleted it, the original question that is. I stand by my smackdown and if the 1 votes come, so be it. :|

                    You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

                    1 Reply Last reply
                    0
                    • I includeh10

                      . Merry Christmas, everyone! Do functions MakeUpper() and MakeLower() of CString work well for Non-English languages, such as French, German, Greek, Japanese, Korean etc? I don't know if the languages specified above are case-sensitive, my question is: Can MakeUpper() and MakeLower() change case for Non-English characters if they are case-sensitive?

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #10

                      You'd be better served asking about _wcsupr_s() and _wcslwr_s().

                      "One man's wage rise is another man's price increase." - Harold Wilson

                      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                      1 Reply Last reply
                      0
                      • I includeh10

                        . Merry Christmas, everyone! Do functions MakeUpper() and MakeLower() of CString work well for Non-English languages, such as French, German, Greek, Japanese, Korean etc? I don't know if the languages specified above are case-sensitive, my question is: Can MakeUpper() and MakeLower() change case for Non-English characters if they are case-sensitive?

                        R Offline
                        R Offline
                        raja jamwal
                        wrote on last edited by
                        #11

                        Though I mainly code in pure winapi, I hope you have some unicode fucntion for same proably something like MakeUpperW() and MakeLowerW(). Actually if you add 65 to a uppercase letter it becomes lower case letter or subtract 65, it becomes the opposite.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups