From fd4c419332c7ce5a9e0cb1bf14526c0b81c7d9b7 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Thu, 18 May 2006 02:06:40 +0000 Subject: Whitespace normalization. --- Lib/lib-tk/turtle.py | 22 +++++++++++----------- Lib/locale.py | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py index ab36732..d68e405 100644 --- a/Lib/lib-tk/turtle.py +++ b/Lib/lib-tk/turtle.py @@ -754,11 +754,11 @@ def setup(**geometry): Setting either width or height to None before drawing will force use of default geometry as in older versions of turtle.py - + startx: starting position in pixels from the left edge of the screen. Default is to center window. Setting startx to None is the default and centers window horizontally on screen. - + starty: starting position in pixels from the top edge of the screen. Default is to center window. Setting starty to None is the default and centers window vertically on screen. @@ -776,7 +776,7 @@ def setup(**geometry): forces use of default geometry as in older versions of turtle.py """ - + global _width, _height, _startx, _starty width = geometry.get('width',_width) @@ -790,7 +790,7 @@ def setup(**geometry): _height = height else: raise ValueError, "height can not be less than 0" - + startx = geometry.get('startx', _startx) if startx >= 0 or startx == None: _startx = _startx @@ -813,7 +813,7 @@ def setup(**geometry): # center window on screen if _startx is None: _startx = (_root.winfo_screenwidth() - _width) / 2 - + if _starty is None: _starty = (_root.winfo_screenheight() - _height) / 2 @@ -827,7 +827,7 @@ def title(title): Example: >>> title("My Window") """ - + global _title _title = title @@ -904,10 +904,10 @@ def demo2(): pendown = True circle(r,10) sleep(2) - - reset() + + reset() left(90) - + # draw a series of triangles l = 10 color("green") @@ -936,7 +936,7 @@ def demo2(): forward(90) color("red") speed('fastest') - down(); + down(); # create a second turtle and make the original pursue and catch it turtle=Turtle() @@ -963,7 +963,7 @@ def demo2(): forward(4) write("CAUGHT! ", move=True) - + if __name__ == '__main__': from time import sleep diff --git a/Lib/locale.py b/Lib/locale.py index b60c0a4..fd549bb 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -132,7 +132,7 @@ def _group(s, monetary=False): def format(percent, value, grouping=False, monetary=False, *additional): """Returns the locale-aware substitution of a %? specifier (percent). - + additional is for format strings which contain one or more '*' modifiers.""" # this is only for one-percent-specifier strings and this should be checked -- cgit v0.12 alue='range'>range
path: root/src/3rdparty/webkit/JavaScriptCore/API/JSStringRefCF.h
blob: a42476561b0f9d6f52932ba84866199c2020035d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
 * Copyright (C) 2006, 2007 Apple Computer, Inc.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
 */

#ifndef JSStringRefCF_h
#define JSStringRefCF_h

#include "JSBase.h"
#include <CoreFoundation/CoreFoundation.h>

#ifdef __cplusplus
extern "C" {
#endif

/* CFString convenience methods */

/*!
@function
@abstract         Creates a JavaScript string from a CFString.
@discussion       This function is optimized to take advantage of cases when 
 CFStringGetCharactersPtr returns a valid pointer.
@param string     The CFString to copy into the new JSString.
@result           A JSString containing string. Ownership follows the Create Rule.
*/
JS_EXPORT JSStringRef JSStringCreateWithCFString(CFStringRef string);
/*!
@function
@abstract         Creates a CFString from a JavaScript string.
@param alloc      The alloc parameter to pass to CFStringCreate.
@param string     The JSString to copy into the new CFString.
@result           A CFString containing string. Ownership follows the Create Rule.
*/
JS_EXPORT CFStringRef JSStringCopyCFString(CFAllocatorRef alloc, JSStringRef string);

#ifdef __cplusplus
}
#endif

#endif /* JSStringRefCF_h */