Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: tools/json_schema_compiler/cpp_util.py

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions_api_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/cpp_util.py
===================================================================
--- tools/json_schema_compiler/cpp_util.py (revision 181773)
+++ tools/json_schema_compiler/cpp_util.py (working copy)
@@ -9,6 +9,7 @@
from datetime import datetime
from model import Property, PropertyType, Type
import os
+import re
CHROMIUM_LICENSE = (
"""// Copyright (c) %d The Chromium Authors. All rights reserved.
@@ -31,7 +32,7 @@
eg experimental.downloads -> Experimental_Downloads
updateAll -> UpdateAll.
"""
- return '_'.join([x[0].upper() + x[1:] for x in s.split('.')])
+ return '_'.join([x[0].upper() + x[1:] for x in re.split('\W', s)])
def GetAsFundamentalValue(type_, src, dst):
"""Returns the C++ code for retrieving a fundamental type from a
« no previous file with comments | « chrome/common/extensions_api_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698