Skip to content

Commit 187819d

Browse files
committed
strjoin2 and strsplit2 renaming.
1 parent 3f4f4e0 commit 187819d

File tree

11 files changed

+18
-17
lines changed

11 files changed

+18
-17
lines changed

code/machine_learning/ml_trainlda.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,5 @@
161161
w = (mu{2} - mu{1}) / sig_both;
162162
w = w / (mu{2}*w' - mu_both*w');
163163
model = struct('w',{w}, 'b',{mu_both*w'}, 'classes',{classes},'featuremask',{retain},'lams',{lams});
164+
1;
164165
end

dependencies/PropertyGrid-2010-09-16-mod/Contents.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
% javaStringArray - Converts a MatLab cell array of strings into a java.lang.String array.
3232
%
3333
% String utility functions
34-
% strjoin - Concatenates a cell array of strings.
35-
% strsplit - Splits a string into a cell array of strings.
34+
% strjoin2 - Concatenates a cell array of strings.
35+
% strsplit2 - Splits a string into a cell array of strings.
3636
% var2str - Textual representation of any MatLab value.
3737
% strsetmatch - Indicator of which elements of a universal set are in a particular set.
3838
%

dependencies/PropertyGrid-2010-09-16-mod/JidePropertyGridField.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@
242242

243243
% find the JidePropertyGridField with the given dot-notated name in an array
244244
function self = FindByName(selfarray, name)
245-
self = selfarray.FindByNameRecurse(strsplit(name, '.'));
245+
self = selfarray.FindByNameRecurse(strsplit2(name, '.'));
246246
end
247247

248248
% deallocate registered editor context guts

dependencies/PropertyGrid-2010-09-16-mod/PropertyGrid.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ function OnKeyPressed(obj, event)
387387
name = PropertyGrid.GetSelectedProperty(obj);
388388
self = PropertyGrid.FindPropertyGrid(obj, 'Table');
389389
if ~isempty(name) && ~isempty(self.BoundItem) % help
390-
nameparts = strsplit(name, '.');
390+
nameparts = strsplit2(name, '.');
391391
if numel(nameparts) > 1
392-
helpobject = nestedfetch(self.BoundItem, strjoin('.', nameparts(1:end-1)));
392+
helpobject = nestedfetch(self.BoundItem, strjoin2('.', nameparts(1:end-1)));
393393
else
394394
helpobject = self.BoundItem;
395395
end

dependencies/PropertyGrid-2010-09-16-mod/PropertyGridField.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ function WireHierarchy(selfarray, descendants)
384384
% hu.bme.aut.www (not a direct child)
385385
names = getclassfield(selfarray, 'Name');
386386
if iscell(filterprefix)
387-
prefix = [strjoin('.', filterprefix) '.'];
387+
prefix = [strjoin2('.', filterprefix) '.'];
388388
else
389389
prefix = [filterprefix '.'];
390390
end

dependencies/PropertyGrid-2010-09-16-mod/PropertyType.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
end
250250
case 'cellstr'
251251
if ~isempty(value)
252-
javavalue = java.lang.String(strjoin(sprintf('\n'), value));
252+
javavalue = java.lang.String(strjoin2(sprintf('\n'), value));
253253
else
254254
javavalue = java.lang.String();
255255
end
@@ -314,7 +314,7 @@
314314
return;
315315
end
316316
case 'cellstr'
317-
value = strsplit(javavalue);
317+
value = strsplit2(javavalue);
318318
case 'logical'
319319
if ~isempty(self.Domain)
320320
value = strsetmatch(cell(javavalue), self.Domain);
@@ -449,7 +449,7 @@
449449
end
450450
if ~isempty(self.Domain)
451451
if iscellstr(self.Domain)
452-
s = [s ' ' strjoin(',', self.Domain)];
452+
s = [s ' ' strjoin2(',', self.Domain)];
453453
elseif isnumeric(self.Domain)
454454
s = [s ' ' mat2str(self.Domain)];
455455
end

dependencies/PropertyGrid-2010-09-16-mod/helpdialog.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function helpdialog(obj)
6868
% help text
6969
rgb = get(fig, 'Color');
7070
text = cellfun(@(line) helpdialog_html(line), text, 'UniformOutput', false);
71-
html = ['<html>' strjoin(sprintf('\n'), text) '</html>'];
71+
html = ['<html>' strjoin2(sprintf('\n'), text) '</html>'];
7272
jtext = javax.swing.JLabel(html);
7373
jcolor = java.awt.Color(rgb(1), rgb(2), rgb(3));
7474
jtext.setBackground(jcolor);

dependencies/PropertyGrid-2010-09-16-mod/nestedassign.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
% Copyright 2010 Levente Hunyadi
2626
function obj = nestedassign(obj, name, value)
2727
if ~iscell(name)
28-
nameparts = strsplit(name, '.');
28+
nameparts = strsplit2(name, '.');
2929
else
3030
nameparts = name;
3131
end

dependencies/PropertyGrid-2010-09-16-mod/nestedfetch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
% Copyright 2010 Levente Hunyadi
2222
function value = nestedfetch(obj, name)
2323
if ~iscell(name)
24-
nameparts = strsplit(name, '.');
24+
nameparts = strsplit2(name, '.');
2525
else
2626
nameparts = name;
2727
end

dependencies/PropertyGrid-2010-09-16-mod/strjoin2.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
% strings:
77
% a cell array of strings to join
88
%
9-
% See also: strsplit, cell2mat
9+
% See also: strsplit2, cell2mat
1010

1111
% Copyright 2008-2009 Levente Hunyadi
12-
function string = strjoin(adjoiner, strings)
12+
function string = strjoin2(adjoiner, strings)
1313

1414
validateattributes(adjoiner, {'char'}, {'vector'});
1515
validateattributes(strings, {'cell'}, {'vector'});
1616
assert(iscellstr(strings), ...
17-
'strjoin:ArgumentTypeMismatch', ...
17+
'strjoin2:ArgumentTypeMismatch', ...
1818
'The elements to join should be stored in a cell vector of strings (character arrays).');
1919
if isempty(strings)
2020
string = '';

0 commit comments

Comments
 (0)