Ignore:
Timestamp:
Jan 19, 2015, 8:43:56 PM (4 years ago)
Author:
cameron
Message:

Generator support for precompiled property cpp files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/UCD/cformat.py

    r4389 r4428  
    1212"""
    1313
     14cpp_template = r"""
     15/*
     16 *  Copyright (c) 2015 International Characters, Inc.
     17 *  This software is licensed to the public under the Open Software License 3.0.
     18 *  icgrep is a trademark of International Characters, Inc.
     19 *
     20 *  This file is generated by %s - manual edits may be lost.
     21 */
     22
     23#include "%s.h"
     24"""
     25
     26
     27
    1428def open_header_file_for_write(filename, generator_name='UCD_properties.py'):
    1529   f = open(filename + '.h', 'w')
     
    1832   return f
    1933
     34def open_cpp_file_for_write(filename, generator_name='UCD_properties.py'):
     35   f = open(filename + '.cpp', 'w')
     36   f.write(cpp_template % (generator_name, filename))
     37   return f
     38
    2039def close_header_file(f):
    2140   f.write("\n#endif\n")
     41   f.close()
     42
     43def close_cpp_file(f):
    2244   f.close()
    2345
Note: See TracChangeset for help on using the changeset viewer.