title: How to convert identifier letter case in c++ macros
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2777721/change-case-of-argument-provided-to-c-preprocessor-macro">Change case of argument provided to C preprocessor macro</a>  </p>
  </blockquote>
  
  
  
  <p>I have the following cpp code</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  #define PROPERTY(name,type) type get ## name () { return name; } void set ## name ( type value ) { this-&gt; name ; }
  
  class Demo {
  
    string name;
  
  public:
    PROPERTY(name,string)
  
    Demo() {
        name = "no name";
    }
  };
  
  int main(){
    Demo demo;
    cout &lt;&lt; demo.getname();
    return 0;
  }
  </code></pre>
  
  <p>according to the code above, the macro will generate a method named "getname" , i want to make it "getName"</p>
  
  <p>how to do change tokens case in macros ?</p>