Examples of CFRange


Examples of org.eclipse.swt.internal.carbon.CFRange

      if (APP_NAME != null) {
        char [] chars = new char [APP_NAME.length ()];
        APP_NAME.getChars (0, chars.length, chars, 0);
        int cfstring = OS.CFStringCreateWithCharacters (OS.kCFAllocatorDefault, chars, chars.length);
        if (cfstring != 0) {
          CFRange range = new CFRange ();
          range.length = chars.length;
          int encoding = OS.CFStringGetSystemEncoding ();
          int [] size = new int [1];
          int numChars = OS.CFStringGetBytes (cfstring, range, encoding, (byte) '?', true, null, 0, size);
          if (numChars != 0) {
View Full Code Here

Examples of org.eclipse.swt.internal.carbon.CFRange

  if (url != 0) {
    int extention = OS.CFURLCopyPathExtension(url);
    if (extention != 0) {
      int length = OS.CFStringGetLength(extention);
      char[] buffer = new char[length];
      CFRange range = new CFRange();
      range.length = length;
      OS.CFStringGetCharacters(extention, range, buffer);
      String ext = new String(buffer);
      if (ext.equalsIgnoreCase("png")) {
        int provider = OS.CGDataProviderCreateWithURL(url);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.