Find Wether unicode sequence is present in a string

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?

      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",

  • 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 -
    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.


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

      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.


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

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

    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:
      <Native SQL statement>
    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
    Pls. Mark If useful

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

    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

    vedmack wrote:
    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 &&

    would you guys say code that compiles fine without -std=c++11 should also compile *with* -std=c++11?
    [email protected]_x86:/tmp $ CC -V
    CC: Sun C++ 5.13 SunOS_i386 Beta2 2014/06/17
    [email protected]_x86:/tmp $ CC  
    [email protected]_x86:/tmp $ CC -std=c++11         
    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.
    [email protected]_x86:/tmp $ cat
    #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.

    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.
    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 ???

    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: []

  • 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. :)

    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: "", starts at index: "+m.start());
            } else {
                System.out.println("nothing found");
    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 … 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 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?
    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 false 1 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: … 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.

    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

  • Connect problem with db link and scheduler_jobs on

    hello guys i have got this problem, i hope someone can help me to understand and solve it. I have a pl/sql procedure where is referenced a table on a db_link. I own all the grants needed, and if i recall it in an anonymous block, it seems to work. i.

  • How to create a local EJB 3.0 and execute in JDeveloper?

    Hello guys! I'm brand new with EJB 3.0. I would like to know how can I create a @Local EJB and a client in JDeveloper? It's was ease to create a @Remote EJB and the sample java client, how can I do same to @Local EJB? I'm using JDeveloper

  • Problems with opening iBA books after the recent upgrade.

    How many folks have had problems opening .iba books after the recent upgrade?? I did !  I completed and delivered a free book which was No: 9 in series - all the others opened OK in iBA after the upgrade except this last one. I read the forum, none o

  • Computer lags while using internet

    Recently, my computer has been lagging while I use the internet. It's not a significant lag, but it shouldn't lag at all given the processing speed of the computer. Here are some examples, -Picture slideshow delays for 2-3 seconds when I click "next"

  • Hi friends. I want copy the scheme 1 from

    Hi friends. I want copy the scheme 1 from Machine A to machine B. With Exp and Imp, I have rigth now: In machine A: Scheme 1 with synonyms to objects in Schema SYS. In Machine B: Scheme 1 I want copy from Machine 1, only the objects of Scheme SYS ref