blob: f9eefff3dae116962e228f99b6317c0b40a59438 [file] [log] [blame]
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Common logic needed by other modules."""
def EscapeClassName(fully_qualified_class):
"""Returns an escaped string concatenating the Java package and class."""
escaped = fully_qualified_class.replace('_', '_1')
return escaped.replace('/', '_').replace('$', '_00024')