Any case arguments.

I'm trying to find a certain word in a text file (both supplied to my program as arguments). But for example if the word 'Glitter' appears in the specified file, on the argument 'Glitter' will find it... NOT the argument 'glitter'.
What I was wondering is, can I make my program search the file for the word in any case? Am I correct in assuming I cannot just change my argument to upper or lower case, but infact would have to convert both my argument and the entire text file to lower case to get this to function properly? (Or is there some method I can use to search for the string in any case?)
Cheers!

Well, it depends on how you implemented it, doesn't it?
If you implemented it poorly, changing your code to allow for case insensitivity could be a huge pain in the ass.
But let me draw your attention to java.lang.String.equalsIgnoreCase()
It's pretty typical as well to simply make everything be the same case for searches.

Similar Messages

  • Any cases out yet for the 5G ipods

    Any cases yet fr the 5G ipods apart from the invinsible shield?. thanx for any replies

    go to http://ilounge.com
    they have a lot of reviews on various cases

  • In Consignment is there any case of  Purchase order or purchase requisition

    Hi All,
    Can u tell me In Consignment is there any case of  Purchase order or purchase requisition ? Also in fill up is there any PGI ???  How to keep special stock in Fill up ?
    My id : [email protected]
    Appreciate your information and will definitely reward points.
    Regards
    Rajarshi

    Hi
    Here's a General thumb rule,
    Consignment <b>fill up</b>
    -Sales order>delivery[ PGI]->no billing
    Item Cat = KBN, Schd ln = E1
    *In this step, you are not invoicing the customer. document flow is sales order -
    delivery item category. It will not be relevent for billing and pricing because you are not charging money for these goods in this step.
    In schedule line category, you will set movement type 631 & set for availability check and TOR.
    Consignment <b>issue</b>
    -Sales order>delivery[ PGI]->billing
    Item Cat = KEN, Schd ln = C1
    Consignment <b>pick up</b>
    -Sales order>delivery[PGR]->no billing
    Consignment <b>RETURNS</b>
    -Sales order>delivery[PGR]->Credit Memo
    Item cat = KAN ,schd. line F1
    Hope this helps

  • How to change parameter to accept any case

    Hi Gurus,
    I created a report using SSRS (SQL Server Reporting Services) using report builder. I need help or advice in two problems am facing.
    I have a parameter as LASTNAME, but when i type 'smith' i do not get any results and when i type in 'SMITH' i get results, how can i change such that the user can type any case and still get the results. I went to the dataset properties and set the CASE
    SENSITIVITY to false, but still no change in the functionality.
    Secondly i want to add a new parameter casenumber, what i want is the user can enter value EITHER in the LASTNAME or CASENUMBER, for example if i enter SMITH in the last name field and leave the case number field blank it should still render the records
    and the same way if i leave the last name blank and enter a value in  the casenumber it should render records.
    Please need advice.
    Thanks

    For the case sensitivity issue you could convert what ever the user inputs to upper case in your sql "UPPER(@name)".
    For the different parameter you could create a parameter that asks the user what he wants to input, name or case number. Then depending on what they select modify your where clause in SQL based on that parameter value.
    ie.  WHERE (@filterBy = 'Name' AND Name LIKE '%+@paramValue+%') OR (@filterBy = 'Case' AND Case LIKE '%+@paramValue+%')
    If you would like them to be able to filter by either or both but not have to input both then you could concatenate '%' to both ends of each variable an use like statements.  You would have to change your report parameter to accept blank value.

  • Selecting the data without considering any case sensitives

    Moderator message: please do not post the same question more than once
    Hi,
    I need to select the data without considering any case sensitives.
    Eg: If i enter ***JoHn****, then system need to select all currencies or amount depending on the this name.
    Please assist, many thanks.
    Sameer.
    Edited by: Matt on Nov 20, 2008 1:16 PM

    Hi,
    use cp or like in the select query
    and more over any thing given in single quotes must be in upper case to my knowledge in ABAP.
    any how try this
    select * from dbtab where name like '%JoHn%'.
    if doesnt work translate it to upper case.
    hope this this would solve.
    regards
    Ramchander Rao.K

  • I have OS X I think. In any case I installed an updated firefox and my OS itself isn't updated enought to run it. So can I either somehow downgrade to the old firefox or at least somehow access and export my bookmarks?

    I have OS X I think. In any case I installed an updated firefox and my OS itself isn't updated enought to run it. So can I either somehow downgrade to the old firefox or at least somehow access and export my bookmarks?

    Swarnava, the OP is using a Mac, not Windows.
    @Jubjub, based on your More system details... on right of your post you have a Intel Mac OS X 10.4.11
    The last version that will work on your OS version is Firefox 3.6.* as the current 3.6.24 can be found at http://www.mozilla.org/en-US/firefox/all-older.html

  • Can purchase order be cost object in any case ?

    Hi,
    My simple questions to you friends is ;
    Can Purchase order be a cost object in any case ?
    Plz reply
    Thanks,
    BKD

    Hi,
    You are mixing the terms. Cost object is a CO entity which is used to collect costs for further analysis. A classic example for it Cost Centre, Internal Order, etc. A purchase order is MM record, which could create CO document (commitment) if commitment management is activated for the controlling area. However, PO is not a CO object in any case.
    Regards,
    Eli

  • Is there any case sensitive difference into oracle 10.2.0.3 and 1.0.2.0.4

    Hi,
    I am getting the below out for same query on differenent version
    server 10.2.0.3
    select * from emp where ename like '%m%';
    ouput : (Including all 'm' character small & capital letters)
    1. Smith
    2. Mak
    server 10.2.0.4
    select * from emp where ename like '%m%';
    ouput : (Include Only small character)
    1. Smith
    Is there any case sensitive difference, Please help.
    Thanks...

    I've got different results:
    9.2
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    SQL> create table t (name varchar2(10);
    create table t (name varchar2(10)
    ERROR at line 1:
    ORA-00907: missing right parenthesis
    SQL> create table t (name varchar2(10));
    Table created.
    SQL> insert into t values('Mark');
    1 row created.
    SQL> insert into t values('MaRk');
    1 row created.
    SQL> select * from t where name like 'Mar%';
    NAME
    Mark
    SQL> 10.2.2
    SQL*Plus: Release 10.2.0.2.0 - Production on Mon Mar 7 12:42:37 2011
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> create table t (name varchar2(10));
    Table created.
    SQL> insert into t values('Mark');
    1 row created.
    SQL> insert into t values('MaRk');
    1 row created.
    SQL> select * from t where name like 'Mar%';
    NAME
    Mark
    SQL> 10.2.3
    SQL*Plus: Release 10.2.0.3.0 - Production on Mon Mar 7 12:45:11 2011
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    SQL> create table t (name varchar2(10)); 
    Table created.
    SQL> insert into t values('Mark');
    1 row created.
    SQL> insert into t values('MaRk');
    1 row created.
    SQL> select * from t where name like 'Mar%';
    NAME
    Mark
    SQL> 10.2.4
    SQL*Plus: Release 10.2.0.4.0 - Production on Mon Mar 7 12:41:10 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining
    and Real Application Testing options
    SQL> create table t (name varchar2(10));
    Table created.
    SQL> insert into t values('Mark');
    1 row created.
    SQL> insert into t values('MaRk');
    1 row created.
    SQL> select * from t where name like 'Mar%';
    NAME
    Mark
    SQL>

  • It is possible to locate iphone 4s lost? , or in any case to block it?

    It is possible to locate iphone 4s lost? , or in any case to block it?.
    Iphone has activated to look for my

    No one here can block your phone.  Contact your carrier.
    Note: you're not speaking to Apple, just fellow users.  In any case, Apple can't block your iPhone.

  • Is there anyway I can use my ipod shuffle while swimming? Is there any case/earphones that makes it waterproof?

    Is there anyway I can use my ipod shuffle while swimming? Is there any case/earphones that makes it waterproof?

    Click here.
    Regards.

  • Is there anyway I can use my ipod touch while swimming? Is there any case/earphones that makes it waterproof?

    Is there anyway I can use my ipod touch while swimming? Is there any case/earphones that makes it waterproof?

    Click here.
    Regards.

  • Any cases for 2009 13' Macbook Air?

    I recently bought a refurbished 2009 Macbook air and I'm not able to find ANY cases. Can anyone help?

    You will need the Snow Leopard installation media.  Use this as a guide:
    https://discussions.apple.com/docs/DOC-6162
    Ciao.

  • Any case study on using ERP sales order vs CRM Sales order in IC WEB UI

    Hi All,
    Currently we have a requirement where in agent uses ERP Sales order functionality in IC WEB UI for creating sales order. Incase of any incompleteness in order or any pricing error an activity should get created and should get assinged to Back office guy(CRM User).
    My approach is as follows, we will call a custom FM in CRM from the user exit associated with Sales order transaction, This logic gets executed on save of ERP sales order.This custom FM will create an activity in CRM and assing it to back office guy. Other approach is to use the IDOC linked to the VAO1 transaction which inturns calls the custom fm.
    Can you please suggest if you have any better approach to this.
    Recently we came to know that ERP Sales order has got limited functionalities. If some one has a case study doc on ERP Sales order vs CRM sales order pls give me the ref link.
    Thanks,
    udaya

    Hi Udaya,
    Calling a Customer Specific R/3 Transaciton was quite easy in CRM 4.0 / 5.0 in the PC-UI Framework using Object Links. You can do that all by customizing and creating a custom method for a BOR Object in Transaction SWO1.
    I think I've used CRM_ORDER_MAINTAIN to update the Document Flow. The subsequent activities where created by BAPI_ACTIVITYCRM_CREATEMULTI. I've wrapped all that standard functions in a RFC enabled function module.
    It would be possible to provide also a link in the E-Mail to the Manager but the client is using a Citrix environment to provide access to the Portal. But Outlook runs locally. So we decided to use the standard Portal iView to display the Alerts. When you fill the Alert Container with the elements OBJKEY_GUID, OBJKEY_BOR_OBJECT_TYPE, OBJKEY_CRM_OBJECT_TYPE, OBJKEY_METHOD and OBJKEY_LOGICAL_SYSTEM using the Function Module SWC_ELEMENT_SET that provides a direct link to the specific document too.
    Best regards
    Gregor

  • Are there any cases for creative zen visio

    because i'v looked everywhere and alls i could find was the pouch that comes with it and the leather pouch that i found on this creative web site. got any suggestions

    I'm glad to see Creative have a case at least, but I've not heard of any others. I'm sure given time, and if the player proves popular, other cases will appear. It's worth emailing case manufacturers such as Vaja (if you are rich!) to register interest, as this often spurs them to produce one.

  • Any cases other than the smart cover? or some that go with it?

    Hey,
    Has anyone had any luck with affordable cases that work WITH the smart cover? I am mainly talking about cases or covers for the back of the iPad that work with the fancy smart covers.
    I will bet a pretty penny a bunch of case designers will make back covers to go with the smart covers.
    Has anybody found any other cases in general?
    The smart cover scratching the iPad is pretty bothersome. Not sure if I want to get one anymore...

    I'm guessing the only way to get around this issue were if someone was to manufacture those clear films (ie like the screen protectors)for the back/side of the iPad 2. I'm guessing it would have little adverse effect on the magnets efficiency and you could replace them however often required? Its certainly something I would look into.
    Message was edited by: disco_UK

Maybe you are looking for

  • HT3964 How do I stop my Macbook from overheating and making a fan noise?

    My Macbook Pro 17 Inch keeps overheating and making a fan noise after I use it for... say... an hour. I use Windows on my Macbook, is this related to my problem? If not, do I need to get my fan replaced? It gets annoying whenever I play a game, and t

  • Open PDF file in Acrobat reader rather than SAP Document viewer...

    Hello everyone,                 Whenever we attach a pdf file using Services for objects-->Store Business documents, an attachment list list is created and the file is archived in the repository. If we double click on it, the pdf is opened in SAP Doc

  • IC Webclient - making a field required

    On the BupaSearch View, I want to make some other fields required before you can successfully create an account.  Right now Country is the only one.  Country does not use the tag REQUIRED = "TRUE".  Even if I do used this tag, it really doesn't have

  • Backup Analysis Services Database

    I am having an issue backing up SQL Server Analysis services Databases.  I have seen some threads on ensuring SQLServerAgent service account has write access to the folder containing the backup, be a sysadmin in SQL Server Instance, and be a server a

  • Freecause security certificate has expired and now i can't use firefox. What's the fix?

    When I launch Firefox I get the following error message; Could not verify this certificate because it has expired. xml.freecause.com:443 uses an invalid security certificate. Issued to Common name *.freecause.com Organization freecause, Inc Organizat