Skip to content

Commit 54ba887

Browse files
committed
single quotes
1 parent 085991e commit 54ba887

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+273
-268
lines changed

+stdlib/cpu_load.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%%% Inputs
44
% * backend: backend to use
55
%%% Outputs
6-
% * i: Returns the "recent cpu usage" for the whole system.
6+
% * i: Returns the 'recent cpu usage' for the whole system.
77
% * b: backend used
88
%
99
% This value is a double greater than 0.
@@ -29,7 +29,7 @@
2929
case 'sys'
3030
i = stdlib.sys.cpu_load();
3131
otherwise
32-
error("stdlib:cpu_load:ValueError", "Unknown backend: %s", b)
32+
error('stdlib:cpu_load:ValueError', 'Unknown backend: %s', b)
3333
end
3434

3535
if ~isempty(i)
@@ -39,4 +39,4 @@
3939

4040
end
4141

42-
%!assert (stdlib.cpu_load() >= 0)
42+
%!assert (stdlib.cpu_load() >= 0)

+stdlib/create_symlink.m

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,27 @@
1212

1313
function [i, b] = create_symlink(target, link, backend)
1414
if nargin < 3
15-
backend = ["native", "dotnet", "python", "sys"];
15+
backend = {'native', 'dotnet', 'python', 'sys'};
1616
else
1717
backend = string(backend);
1818
end
1919

2020
i = logical([]);
2121

22-
for b = backend
22+
for j = 1:numel(backend)
23+
b = backend{j};
2324
switch b
24-
case "native"
25+
case 'native'
2526
i = stdlib.native.create_symlink(target, link);
26-
case "dotnet"
27+
case 'dotnet'
2728
i = stdlib.dotnet.create_symlink(target, link);
28-
case "python"
29+
case 'python'
2930
if stdlib.matlabOlderThan('R2022a'), continue, end
3031
i = stdlib.python.create_symlink(target, link);
31-
case "sys"
32+
case 'sys'
3233
i = stdlib.sys.create_symlink(target, link);
3334
otherwise
34-
error("stdlib:create_symlink:ValueError", "Unknown backend: %s", b)
35+
error('stdlib:create_symlink:ValueError', 'Unknown backend: %s', b)
3536
end
3637

3738
if ~isempty(i)

+stdlib/device.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
for j = 1:numel(backend)
2020
b = backend{j};
2121
switch b
22-
case "java"
22+
case 'java'
2323
i = stdlib.java.device(file);
24-
case "python"
24+
case 'python'
2525
if stdlib.matlabOlderThan('R2022a'), continue, end
2626
i = stdlib.python.device(file);
27-
case "sys"
27+
case 'sys'
2828
i = stdlib.sys.device(file);
2929
otherwise
30-
error("stdlib:device:ValueError", "Unknown backend: %s", b)
30+
error('stdlib:device:ValueError', 'Unknown backend: %s', b)
3131
end
3232

3333
if ~isempty(i)
@@ -38,4 +38,4 @@
3838
end
3939

4040

41-
%!assert (stdlib.device('.') > 0)
41+
%!assert (stdlib.device('.') > 0)

+stdlib/disk_available.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
case 'sys'
3333
i = stdlib.sys.disk_available(file);
3434
otherwise
35-
error("stdlib:disk_available:ValueError", "Unknown backend: %s", b)
35+
error('stdlib:disk_available:ValueError', 'Unknown backend: %s', b)
3636
end
3737

3838
if ~isempty(i)

+stdlib/disk_capacity.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
case 'sys'
3131
i = stdlib.sys.disk_capacity(file);
3232
otherwise
33-
error("stdlib:disk_capacity:ValueError", "Unknown backend: %s", b)
33+
error('stdlib:disk_capacity:ValueError', 'Unknown backend: %s', b)
3434
end
3535

3636
if ~isempty(i)

+stdlib/exists.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%% EXISTS does path exist
22
%
3-
% NOTE: in general on Windows exists("./not-exist/..") is true, but on
3+
% NOTE: in general on Windows exists('./not-exist/..') is true, but on
44
% Unix it is false.
55
% In C/C++ access() or stat() the same behavior is observed Windows vs Unix.
66
%

+stdlib/file_checksum.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
%
55
%%% Inputs
66
% * file: file or to hash
7-
% * hash_method: "MD5", "SHA-1", "SHA-256", etc.
7+
% * hash_method: 'MD5', 'SHA-1', 'SHA-256', etc.
88
% * backend: backend to use
99
%%% Outputs
1010
% * hash: string hash
@@ -49,4 +49,4 @@
4949
%! if stdlib.has_java()
5050
%! hj = stdlib.file_checksum(f, 'sha256', 'java');
5151
%! assert(strcmp(hs, hj))
52-
%! end
52+
%! end

+stdlib/filesystem_type.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
for j = 1:numel(backend)
2222
b = backend{j};
2323
switch b
24-
case "java"
24+
case 'java'
2525
r = stdlib.java.filesystem_type(file);
26-
case "dotnet"
26+
case 'dotnet'
2727
r = stdlib.dotnet.filesystem_type(file);
28-
case "python"
28+
case 'python'
2929
if stdlib.matlabOlderThan('R2022a'), continue, end
3030
r = stdlib.python.filesystem_type(file);
31-
case "sys"
31+
case 'sys'
3232
r = stdlib.sys.filesystem_type(file);
3333
otherwise
34-
error("stdlib:filesystem_type:ValueError", "Unknown backend: %s", b)
34+
error('stdlib:filesystem_type:ValueError', 'Unknown backend: %s', b)
3535
end
3636

3737
if ~isempty(r)
@@ -42,4 +42,4 @@
4242
end
4343

4444

45-
%!assert (~isempty(stdlib.filesystem_type('.')))
45+
%!assert (~isempty(stdlib.filesystem_type('.')))

+stdlib/get_owner.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
for j = 1:numel(backend)
2020
b = backend{j};
2121
switch b
22-
case "java"
22+
case 'java'
2323
r = stdlib.java.get_owner(file);
24-
case "dotnet"
24+
case 'dotnet'
2525
r = stdlib.dotnet.get_owner(file);
26-
case "python"
26+
case 'python'
2727
if stdlib.matlabOlderThan('R2022a'), continue, end
2828
r = stdlib.python.get_owner(file);
29-
case "sys"
29+
case 'sys'
3030
r = stdlib.sys.get_owner(file);
3131
otherwise
32-
error("stdlib:get_owner:ValueError", "Unknown backend: %s", b)
32+
error('stdlib:get_owner:ValueError', 'Unknown backend: %s', b)
3333
end
3434

3535
if ~isempty(r)
@@ -40,4 +40,4 @@
4040
end
4141

4242

43-
%!assert (~isempty(stdlib.get_owner('.')))
43+
%!assert (~isempty(stdlib.get_owner('.')))

+stdlib/get_process_priority.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%% GET_PROCESS_PRIORITY get priority of the current Matlab session
2-
% This is an integer value like "nice" on Unix-like systems
2+
% This is an integer value like 'nice' on Unix-like systems
33
% On Windows systems the char value is like 'Normal'
44
%
55
%%% Inputs
@@ -21,15 +21,15 @@
2121
for j = 1:numel(backend)
2222
b = backend{j};
2323
switch b
24-
case "dotnet"
24+
case 'dotnet'
2525
i = stdlib.dotnet.get_process_priority();
26-
case "python"
26+
case 'python'
2727
if stdlib.matlabOlderThan('R2022a'), continue, end
2828
i = stdlib.python.get_process_priority();
29-
case "sys"
29+
case 'sys'
3030
i = stdlib.sys.get_process_priority();
3131
otherwise
32-
error("stdlib:get_process_priority:ValueError", "Unknown backend: %s", b)
32+
error('stdlib:get_process_priority:ValueError', 'Unknown backend: %s', b)
3333
end
3434

3535
if ~isempty(i)

0 commit comments

Comments
 (0)