Ejemplo n.º 1
0
bool ActionRegister::printManual( const std::string& action ){
  if ( check(action) ){
     Keywords keys; mk[action](keys); 
     keys.print_html(true); keys.destroyData();
     return true;
  } else {
     return false;
  } 
}
Ejemplo n.º 2
0
bool ActionRegister::printManual( const std::string& action, const bool& vimout ) {
  if ( check(action) ) {
    Keywords keys; mk[action](keys);
    if( vimout ) {
      printf("%s",action.c_str()); keys.print_vim(); printf("\n");
    } else {
      keys.print_html();
    }
    keys.destroyData();
    return true;
  } else {
    return false;
  }
}