{{

var classNameToMemberName = function(className) {
  /* TODO(widl-nan): covert camel style to under bar style */
  return className.toLowerCase() + '_';
};

var classNameToFileName =  function(className) {
  /* Following https://google.github.io/styleguide/cppguide.html#File_Names
   * If interface name is MyTestInterface, the C++ file name will be my_test_interface.cpp|h
   */
  return className.replace(/((?!^)[A-Z][a-z0-9]+)/g, '_$1').toLowerCase();
};

var classNameToGuardName =  function(className) {
  return className.replace(/((?!^)[A-Z][a-z0-9]+)/g, '_$1').toUpperCase();
};

}}