File indexing completed on 2024-05-19 04:42:04

0001 #!/usr/bin/env python3
0002 # -*- coding: utf-8 -*-
0003 #
0004 # SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr>
0005 #
0006 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0007 
0008 from jsgenerator import *
0009 from common import *
0010 
0011 # Print the license of the generated file (the same as the one of this file)
0012 license()
0013 basicTypes(globals())
0014 
0015 Module().members(
0016     F(_string, 'normalize', ('p', _string)),
0017     F(_string, 'join', ('path1', _string), ('path2', _string)),
0018     F(_string, 'resolve', ('path', _string)),
0019     F(_string, 'relative', ('from', _string), ('to', _string)),
0020     F(_string, 'dirname', ('p', _string)),
0021     F(_string, 'basename', ('p', _string), ('ext', _string)),
0022     F(_string, 'extname', ('p', _string)),
0023     Var(_string, 'sep'),
0024     Var(_string, 'delimiter')
0025 ).print()