Find Wether unicode sequence is present in a string

HI,
How to find if there is unicode is present in a particular string. Let us say..
String s = '\u5639\u563b';
Which works fine.
But String s ="\\u" +"5639", which won't work bcoz of multiple string not a single character.. but still makes \u5639, my question is is there any way to make this sequence as a one single char .
Thanks in advance,
Srinivas N

Those are two seperate characters. Since a char can
only hold a single character it is not possible to
fit those into a char. Why do you want them in a char
anyway? Do you known that there's a method named
contains(String) in String?In Java 1.5, it's contains(CharSequence). I'd rather use indexOf(String).
If your real problem is to convert a String like "5639" into a char, use (char) Integer.parseInt("5639", 16) (since 5639 is a hex number or base 16).

Similar Messages

  • How to find what planning sequences/functions update data in a cube?

    Hi, Experts:
    We have a real time cube being updated by planning sequences/functions. How can I find what planning sequences/functions are updating this cube?
    Thanks,
    Jenny

    Hi,
      You can go the transaction code: rsa1 and then select "Meta data Repository" option on the left side.
    You can use Meta data repository to view the dependent objects for a infocube or any other BW object.
    In your case, you can select "Infocube" option on the left side and then go on selecting your infocube.
    Now you will get all dependent objects created on this infocube, which will include your plannign functions also.
    Refer top the following link for more details on "Meta data Repository",
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/ea683c25e9096de10000000a114084/frameset.htm
    Regards,
    Balajee

  • How to find out which sequence a certain column used?

    you konw column C in table T is created by a sequence.
    How to find out which sequence column C is using?

    In the meantime I think it ought to becompulsory to
    only assign sequence values in triggers.
    Why? I can see no good reason for this. I think it's a good idea to have stuff like this
    coded in only one placeI don't like your argument for compulsory using triggers for sequences for exactly the same reason as you, ie that I like to keep my code in one place. If I'm reading some pl/sql code which uses a sequence I like to see the fact that the sequence is used in the pl/sql code, rather than to check to see if theres a trigger on the table and then see which sequence that uses.
    "naming conventions can work, provided they're enforced. Alas, like other standards, they can only be enforced by active policing".
    Thats what code reviews are.
    " there is also the special case of one sequence populating more than one table...."
    This is My Pet hate. I don't think there's ever a case where this is absolutely necessary. Again code reviews
    Unfortunately I have to live with a system which does this.
    and I appreciate we can't all have code reviews, etc.

  • ODBC Error: Could't find Oracle Instant Client in present directory.

    I am getting the following error when I try to run odbc_install.exe with the Oracle 10g Instant Client Lite version 2:
    Could't find Oracle Instant Client in present directory.
    The 10g Instant Client Lite version (including the missing MFC71.DLL and MSVCR71.DLL files) is in the directory. What am I missing here??

    Can you detail your configuration? What files are in the directories? Environment variables?

  • Is there a way to find text within Sequence?

    Many of the TestStand 3.0 sequences that I'm creating are fairly lengthy (200 or more steps plus subsequences) and I often need to find a step within the sequence that has a specific string in the Step Name.
    I'm aware of the "Find" feature, but this will change screens and give me a list of all of the steps in the sequence that contain the search string.
    What I want to do is to search for the string within the Sequence so that it takes me to the NEXT occurance of that string (F3 for Find Next), so that I can Edit the Step (i.e. change the Specify Module, Preconditions, or Expressions).
    The only workaround that I've figured out so far is to highlight the sequence, do a "CTL-C" and paste into a word processor, then search th
    at document. Once I find it, I then have to find the same line in the TestStand Sequence.
    Is there an easier way?
    Mike

    Mike -
    I do understand your wanting this type of Find capability. We had considered different designs of Find feature in TestStand and one design allowed for F3 to traverse the tree view of a single step group in a sequence. There were drawbacks to this approach, so we decided on the current implementation. Since you cannot instruct the sequence editor to view specific location in its tree view, any solution that you create would require your own sequence tree view to facilitate the display and editing of the values. The SearchResults class in TestStand 3.0 was used to implement the underlying find functionality in the sequence editor.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • How to Find the Unicode of a character(s)?

    Dear all,
    How to find a unicode of a character in ABAP as we do in c or java,
    for: ex: i want to print the unicode of 'a' as: 90. some what like that.
    later i want to convert the string of characters in to " byte code stream".
    Please do help on this.

    Hi
    You can use FM HR_KR_STRING_TO_XSTRING.
    Regards
    Yossi.R.

  • How to find wether an employee is eligible for compensation  plan

    Hi,
      We have a requirment where in which we have to find wether a employee is eligible for compensation plan.
      Is there any FM available for the same.
      any pointers are appreciated.
    Regards,
    Zareena.

    HR_ECM_TEST_EE_IS_ACTIVE
    HR_ECM_CHECK_ELIGIBILITY
    HR_BEN_US_GET_GROSS_COMP_FT
    regards,
    kishore

  • How to execute an SQL query present in a string inside an ABAP program?

    hello,
    How to execute an SQL query present in a string inside an ABAP program

    Raut,
    You can execute Native SQl statements.
    Ex: To use a Native SQL statement, you must precede it with the EXEC SQL statement, and follow it with the ENDEXEC statement as follows:
    EXEC SQL [PERFORMING <form>].
      <Native SQL statement>
    ENDEXEC.
    There is no period after Native SQL statements. Furthermore, using inverted commas (") or an asterisk (*) at the beginning of a line in a native SQL statement does not introduce a comment as it would in normal ABAP syntax. You need to know whether table and field names are case-sensitive in your chosen database.
    In Native SQL statements, the data is transported between the database table and the ABAP program using host variables. These are declared in the ABAP program, and preceded in the Native SQL statement by a colon (:). You can use elementary structures as host variables. Exceptionally, structures in an INTO clause are treated as though all of their fields were listed individually.
    If the selection in a Native SQL SELECT statement is a table, you can pass it to ABAP line by line using the PERFORMING addition. The program calls a subroutine <form> for each line read. You can process the data further within the subroutine.
    As in Open SQL, after the ENDEXEC statement, SY-DBCNT contains the number of lines processed. In nearly all cases, SY-SUBRC contains the value 0 after the ENDEXEC statement. Cursor operations form an exception: After FETCH, SY-SUBRC is 4 if no more records could be read. This also applies when you read a result set using EXEC SQL PERFORMING.
    EXEC SQL PERFORMING loop_output.
      SELECT connid, cityfrom, cityto
      INTO   :wa
      FROM   spfli
      WHERE  carrid = :c1
    ENDEXEC.
    Pls. Mark If useful

  • Looking for a way to find out the x,y coordinates of a string inside a PDF

    Hi!
    I'm looking for a way to find out the x,y coordinates of a string inside a PDF (with free java api's only)
    I got a pdf, and a string to find inside it, what i need to do is to get this string x,y position inside that pdf....
    If any one knows of such, plz let me know...
    Thanx ahead
    Daniel.

    vedmack wrote:
    Hi!
    I'm looking for a way to find out the x,y coordinates of a string inside a PDF (with free java api's only)
    I got a pdf, and a string to find inside it, what i need to do is to get this string x,y position inside that pdf....
    If any one knows of such, plz let me know...
    Thanx ahead
    Daniel.AFAIK, a string of text does not have an (x,y) location inside a PDF file. The location is exists on your screen, and will differ whenever you adjust the resolution of it. Text can have a location when it's stored as an image though, but than it's really the location of a certain number of pixels (not necessarily a string!).

  • 12.4 Beta, Error: Could not find a match for std::_Tuple_impl 0, std::string && ::_Tuple_impl(std::tuple std::string &&

    Hi,
    would you guys say code that compiles fine without -std=c++11 should also compile *with* -std=c++11?
    raider@sol112_x86:/tmp $ CC -V
    CC: Sun C++ 5.13 SunOS_i386 Beta2 2014/06/17
    raider@sol112_x86:/tmp $ CC buggy.cc  
    raider@sol112_x86:/tmp $ CC -std=c++11 buggy.cc         
    Error: Could not find a match for std::_Tuple_impl<0, std::string &&>::_Tuple_impl(std::tuple<std::string &&>, std::string ) needed in std::tuple<std::string &&>::tuple<std::string, void>(std::string &&).
    "/opt/SolarisStudio12.4-beta_jul14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.8.2/tuple", line 868:     Where: While instantiating "std::tuple<std::string &&>::tuple<std::string, void>(std::string &&)".
    "/opt/SolarisStudio12.4-beta_jul14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.8.2/tuple", line 868:     Where: Instantiated from std::forward_as_tuple<std::string>(std::string &&).
    "/opt/SolarisStudio12.4-beta_jul14-solaris-x86/lib/compilers/CC-gcc/include/c++/4.8.2/bits/stl_map.h", line 485:     Where: Instantiated from non-template code.
    1 Error(s) detected.
    raider@sol112_x86:/tmp $ cat buggy.cc
    #include <map>
    #include <string>
    typedef std::map<std::string, std::string> StrStrMap;
    int main(void)
        StrStrMap dict;
        dict["bug"] = "feature";
        return 0;

    C++11 is approximately a superset of C++03. If you write in the common subset, the code will compile in any mode. For example, a basic hello-world program
    #include <iostream>
    int main() { std::cout << "Hello, world!\n"; }
    will compile and run as C++98/03, as C++11, as C++14, and I'm sure will also work with the next standard, planned for 2017.
    But if you use syntax or library types and functions that are new in C++11, the code will not compile as C++03.
    In my previous post, I might have sounded too negative about compiling C++03 code in C++11 mode. If you have a C++03 program that is intended to be portable, and that works with different compilers on different platforms, chances are good that it will continue to work in C++11. The chances are very good that only minor modifications will be needed.

  • Alternative to find unique records with 60 character in selection string.

    Hi,
    We have to find out the values from the Infoobject. When we try to display data from an master object, the maximum length of selection it accepts 45 characters only but we need to input data around 60 characters in selection.
    Thing we tried:
    1. Selecting complete data without any condition but it did not work due to large volume of data.
    2. We tried to extract data from RSA3 but it did not work due to large volume of data.
    Please suggest me alternative to find unique records with 60 character in selection string.
    Regards,
    Himanshu Panchal.

    This sounds a bit strange. Are you perhaps mistakenly storing text data incorrectly as the primary key of the master data? I can't think of any actual data that is that length to ensure usinqueness - even GUIDs are maximum 32 characters - but GUIDs don't count as actual "readable" data although you do need to be able to select it from time to time. Perhaps you have a super secure password hash or something like it ?
    Also are you expecting to have a unique single record returned by your selection? To do this would in general REQUIRE that ALL the data is read because master data is not stored in the DB sorted by the data itself, but stored instead sorted by the it's SID.
    When you say you are selecting data from master data, which master data tables are you using? I have been able to select data from very large MD table (15 million unique records) using SE16 with no problems. Just enter the table name, and before you execute just count the number of records - it helps to know what you want to end up with.
    Have you tried using wild cards (the *) to preselect a smaller number of records : * a bit of your 60 character string *
    If you are trying to select from a non-key field you will encounter performance issues, but you can still use the wildcards, and get a result.
    Don't use RSA3 it was designed to make selections and group them into datapackets. It's not the same as selecting directly on the table in SE11 or SE16

  • How to find no of numeric characters in a given string ???

    How to find no of numeric characters in a given string ???
    Thanks,
    Kathir

    sabre150 wrote:
    Use String.replaceAll() to replace any characters that are not numeric and then take the length of the resultant String....and this might be useful: [http://www.regular-expressions.info/]
    ;-)

  • Find first occurence of an integer in a string

    Hi all,
    I have a number of strings which go something like "MBNA Flow 12a" and I want to separate the integer from the rest of the string so I can parse it, sort the strings into some sort of order according to their integer, and then put it all back together again. The problem I'm having is finding the position of the integer within the string, so that I can take a substring and/or split the string. I've looked it up and I gather that using regex I should be able to find the beginning and end of the integer, using something along the lines of           
    Pattern pattern = Pattern.compile("\\d+");
               Matcher matcher = pattern.matcher(temp.getString(1));which I found on another site where someone had the same problem. I've looked at the regex tutorials and according to them this is what I want, but whenever I try it no match is found, and I don't know why. Some sites have claimed that the regular expression has to apply to the entire string, so I would need to also take into account the MBNA Flow etc, something I'm loathe to do as the string is quite unpredictable, but others say that it should work exactly as is.
    Any help would be greatly appreciated. :)
    Thanks.

    silversurfer20 wrote:
    Its throwing the exception cause its not finding a match in the string I know there should be a match in. What I'm wondering is why .Call find() before using either group() or start():
    import java.util.regex.*;
    public class Main {
        public static void main(String[]args) {
            Pattern p = Pattern.compile("\\d+");
            Matcher m = p.matcher("foo 12 bar 34 baz");
            if(m.find()) {
                System.out.println("first number: "+m.group()+", starts at index: "+m.start());
            } else {
                System.out.println("nothing found");
    }Output:
    first number: 12, starts at index: 4

  • Where can I find rxvt-unicode .Xdefaults options?

    I have yet to find a comprehensive, straightforward listing of the rxvt-unicode settings.
    The Arch wiki is incomplete, and links to http://pod.tst.eu/http://cvs.schmorp.de … rxvt.1.pod, which doesn't seem to list any tab options.
    Moreover, some options in .Xdefaults seem to only work with the prefix .URxvt (e.g. tab-fg and tab-bg), and some only seem to work with the prefix .urxvt (e.g. scrollTtyKeypress). I really can't figure out when to use which, aside from trial and error.
    And even though every resource seems to agree that URxvt.tabbed.new-button: false should disable the clickable New tab button, it doesn't.
    urxvt --help still doesn't distinguish between which case-sensitive prefixes are required.
    Can anybody shed some light on this?
    .Xdefaults:
    urxvt.depth: 32
    urxvt.background: [80]#0C0020
    urxvt.scrollBar: false
    urxvt.scrollTtyOutput: false
    ! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
    urxvt.scrollWithBuffer: true
    ! scroll back to the bottom on keypress
    urxvt.scrollTtyKeypress: true
    URxvt.foreground: [100]#FFFFFF
    URxvt.font: xft:monospace:size=11
    URxvt.perl-ext-common: tabbed
    URxvt.cursorBlink: true
    URxvt.keysym.M-c: perl:clipboard:copy
    URxvt.keysym.M-v: perl:clipboard:paste
    URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
    URxvt.tabbed.new-button: false
    URxvt.tabbed.tab-fg: 1
    URxvt.tabbed.tab-bg: 0
    Last edited by RobotGymnast (2014-01-12 19:03:36)

    karol wrote:I did some testing and I think this option refers to urxvt-tabbedex package: https://wiki.archlinux.org/index.php/Rx … management
    The 'NEW' button is off be default, but you can enable it, just like it says in the wiki.
    The article is wrong; the New button isn't disabled by default, at least it wasn't for me. I only added lines pertaining to it when I accidentally clicked it and got a new tab.
    karol wrote:
    I'm using
    URxvt.tabbed.autohide: yes
    to disable the tab bar if only one tab is present.
    Thanks, but I don't want tab bar autohiding. I don't like my window shifting around when I open a second tab (which I almost always do).
    Last edited by RobotGymnast (2014-01-12 19:32:35)

  • How to find out the Sequence settings of a created sequence?

    I have had a problem come up a few times where I am switching back and forth from one format to another, I frequently work on multiple edits, and my sound goes out of sync. This is usually because the sequence is set wrong (from when I switch and forget to change it back) and when exported it compresses the audio wrong. How do you find out what the settings are for a sequence you are working on when it's open in the FCP timeline? I'm looking for a quick way to rule out the sequence as part of the audio sync problem.
    Thanks,
    -Bluecast

    Or Command-0. What about Easy Setups? I use them routinely so that I don't have to think about setups. Once the setup is saved and properly used, all the settings for sequences and hardware are easily made for you.

Maybe you are looking for

  • External hard drive disappears when imac wakes up after sleep

    Hi Everyone. Got a really silly question but I can't seem to figure out where to fix this I have 4 USB 500gig hard drives all run off a 13 port powered hub. Now I have one hard drive set aside for my films which I and ripping so they can be view via

  • How to disable print icon in pdf file, which is created using servlet

    Hai, I have created one pdf file using HttpServletResponse.setContentType("application\pdf"). I want to disable the toolbars of the created pdf file. I want to disable the print, save and other icons in pdf file. Can anybody help me to resolve this p

  • Writeback error when updating number more than 1000- URGENT!!

    Hi, I am suing writeback feature in OBIEE 11g, the xml script I am using is <?xml version="1.0" encoding="utf-8" ?> - <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1"> - <WebMessageTable lang="en-us" system="WriteBack" table="Messag

  • Create or remove link between a webi doc and a category with SDK

    Hi, I'd like to use SDK to assign a category to a webi document, or to "uncategorized" document (remove the link between the document and a Corporate Category). I first tried to select the document in the infostore (via infoobjects, "select * from CI

  • How to add multiple desktop on mac os x?

    On my previous version of Mac OS X I was able to add as much desktops I want by just going into upper right corner with my pointer and clickin on the sign +. Now, after replacing my SSD and installing new OS I don't have that option. Does anyone know