Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355499 - strlib.characterLen can not be resolved
Summary: strlib.characterLen can not be resolved
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-23 09:35 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-08-23 09:35:33 EDT
This EDT code 

    function testCharacterLen()
        data string = "This is some random data";
        size1, size2 int = -33;
        size1 = strLib.characterLen(data);
        Syslib.writeStdout(" size 1 " + size1);
        data += "           ";
        size2 = strlib.characterLen(data);
        Syslib.writeStdout(" size 2 " + size2);
        if (size1 == size2)
            syslib.writestdout(" size1 == size2");
        else
            syslib.writestdout(" size1 != size2 -- blanks are counted");
        end
    end

Gets this validation message:

IWN.VAL.6619.e 11/24 tester - strlib.characterLen cannot be resolved.
Comment 1 Paul Harmon CLA 2011-08-23 10:17:51 EDT
You need to use the Strlib that is in package eglx.rbd. You can use:

eglx.rbd.StrLib.characterLen(data), or simply add an explicit import:

import eglx.rbd.StrLib;

to the file. 



Alternatively, you could use the new string functions to do the same thing without using StrLib:

data.trim().length()
Comment 2 Kathy Carroll CLA 2011-09-19 15:24:29 EDT
This code works as is in build 201109191052
Comment 3 Lisa Lasher CLA 2011-10-11 16:02:08 EDT
Closing this defect.