Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3da1773c
Commit
3da1773c
authored
Aug 17, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed String's function lengths.
parent
c2d2b9f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
16 deletions
+50
-16
string.c
dlls/jscript/string.c
+15
-15
api.js
dlls/jscript/tests/api.js
+35
-1
No files found.
dlls/jscript/string.c
View file @
3da1773c
...
@@ -1543,32 +1543,32 @@ static void String_destructor(DispatchEx *dispex)
...
@@ -1543,32 +1543,32 @@ static void String_destructor(DispatchEx *dispex)
}
}
static
const
builtin_prop_t
String_props
[]
=
{
static
const
builtin_prop_t
String_props
[]
=
{
{
anchorW
,
String_anchor
,
PROPF_METHOD
},
{
anchorW
,
String_anchor
,
PROPF_METHOD
|
1
},
{
bigW
,
String_big
,
PROPF_METHOD
},
{
bigW
,
String_big
,
PROPF_METHOD
},
{
blinkW
,
String_blink
,
PROPF_METHOD
},
{
blinkW
,
String_blink
,
PROPF_METHOD
},
{
boldW
,
String_bold
,
PROPF_METHOD
},
{
boldW
,
String_bold
,
PROPF_METHOD
},
{
charAtW
,
String_charAt
,
PROPF_METHOD
},
{
charAtW
,
String_charAt
,
PROPF_METHOD
|
1
},
{
charCodeAtW
,
String_charCodeAt
,
PROPF_METHOD
},
{
charCodeAtW
,
String_charCodeAt
,
PROPF_METHOD
|
1
},
{
concatW
,
String_concat
,
PROPF_METHOD
},
{
concatW
,
String_concat
,
PROPF_METHOD
|
1
},
{
fixedW
,
String_fixed
,
PROPF_METHOD
},
{
fixedW
,
String_fixed
,
PROPF_METHOD
},
{
fontcolorW
,
String_fontcolor
,
PROPF_METHOD
},
{
fontcolorW
,
String_fontcolor
,
PROPF_METHOD
|
1
},
{
fontsizeW
,
String_fontsize
,
PROPF_METHOD
},
{
fontsizeW
,
String_fontsize
,
PROPF_METHOD
|
1
},
{
indexOfW
,
String_indexOf
,
PROPF_METHOD
},
{
indexOfW
,
String_indexOf
,
PROPF_METHOD
|
2
},
{
italicsW
,
String_italics
,
PROPF_METHOD
},
{
italicsW
,
String_italics
,
PROPF_METHOD
},
{
lastIndexOfW
,
String_lastIndexOf
,
PROPF_METHOD
},
{
lastIndexOfW
,
String_lastIndexOf
,
PROPF_METHOD
|
2
},
{
lengthW
,
String_length
,
0
},
{
lengthW
,
String_length
,
0
},
{
linkW
,
String_link
,
PROPF_METHOD
},
{
linkW
,
String_link
,
PROPF_METHOD
|
1
},
{
localeCompareW
,
String_localeCompare
,
PROPF_METHOD
},
{
localeCompareW
,
String_localeCompare
,
PROPF_METHOD
|
1
},
{
matchW
,
String_match
,
PROPF_METHOD
},
{
matchW
,
String_match
,
PROPF_METHOD
|
1
},
{
replaceW
,
String_replace
,
PROPF_METHOD
},
{
replaceW
,
String_replace
,
PROPF_METHOD
|
1
},
{
searchW
,
String_search
,
PROPF_METHOD
},
{
searchW
,
String_search
,
PROPF_METHOD
},
{
sliceW
,
String_slice
,
PROPF_METHOD
},
{
sliceW
,
String_slice
,
PROPF_METHOD
},
{
smallW
,
String_small
,
PROPF_METHOD
},
{
smallW
,
String_small
,
PROPF_METHOD
},
{
splitW
,
String_split
,
PROPF_METHOD
},
{
splitW
,
String_split
,
PROPF_METHOD
|
2
},
{
strikeW
,
String_strike
,
PROPF_METHOD
},
{
strikeW
,
String_strike
,
PROPF_METHOD
},
{
subW
,
String_sub
,
PROPF_METHOD
},
{
subW
,
String_sub
,
PROPF_METHOD
},
{
substrW
,
String_substr
,
PROPF_METHOD
},
{
substrW
,
String_substr
,
PROPF_METHOD
|
2
},
{
substringW
,
String_substring
,
PROPF_METHOD
},
{
substringW
,
String_substring
,
PROPF_METHOD
|
2
},
{
supW
,
String_sup
,
PROPF_METHOD
},
{
supW
,
String_sup
,
PROPF_METHOD
},
{
toLocaleLowerCaseW
,
String_toLocaleLowerCase
,
PROPF_METHOD
},
{
toLocaleLowerCaseW
,
String_toLocaleLowerCase
,
PROPF_METHOD
},
{
toLocaleUpperCaseW
,
String_toLocaleUpperCase
,
PROPF_METHOD
},
{
toLocaleUpperCaseW
,
String_toLocaleUpperCase
,
PROPF_METHOD
},
...
...
dlls/jscript/tests/api.js
View file @
3da1773c
...
@@ -1410,7 +1410,6 @@ testFunctions(Boolean.prototype, [
...
@@ -1410,7 +1410,6 @@ testFunctions(Boolean.prototype, [
[
"toString"
,
0
]
[
"toString"
,
0
]
]);
]);
testFunctions
(
Number
.
prototype
,
[
testFunctions
(
Number
.
prototype
,
[
[
"valueOf"
,
0
],
[
"valueOf"
,
0
],
[
"toString"
,
1
],
[
"toString"
,
1
],
...
@@ -1419,4 +1418,39 @@ testFunctions(Number.prototype, [
...
@@ -1419,4 +1418,39 @@ testFunctions(Number.prototype, [
[
"toPrecision"
,
1
]
[
"toPrecision"
,
1
]
]);
]);
testFunctions
(
String
.
prototype
,
[
[
"valueOf"
,
0
],
[
"toString"
,
0
],
[
"anchor"
,
1
],
[
"big"
,
0
],
[
"blink"
,
0
],
[
"bold"
,
0
],
[
"charAt"
,
1
],
[
"charCodeAt"
,
1
],
[
"concat"
,
1
],
[
"fixed"
,
0
],
[
"fontcolor"
,
1
],
[
"fontsize"
,
1
],
[
"indexOf"
,
2
],
[
"italics"
,
0
],
[
"lastIndexOf"
,
2
],
[
"link"
,
1
],
[
"localeCompare"
,
1
],
[
"match"
,
1
],
[
"replace"
,
1
],
[
"search"
,
0
],
[
"slice"
,
0
],
[
"small"
,
0
],
[
"split"
,
2
],
[
"strike"
,
0
],
[
"sub"
,
0
],
[
"substr"
,
2
],
[
"substring"
,
2
],
[
"sup"
,
0
],
[
"toLocaleLowerCase"
,
0
],
[
"toLocaleUpperCase"
,
0
],
[
"toLowerCase"
,
0
],
[
"toUpperCase"
,
0
]
]);
reportSuccess
();
reportSuccess
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment